Model/Behavior/PermitBehavior.php
public function permit(Model $Model, $settings = array()) {
		// store existing model defaults
		$this->modelDefaultsPersist[$Model->alias] = $this->modelDefaults[$Model->alias];
		// assign new settings
		$this->modelDefaults[$Model->alias] = array_merge($this->modelDefaults[$Model->alias], $settings);
	}
public function permit(Model $Model, $settings = array()) {
		// store existing model defaults
		$this->modelDefaultsPersist[$Model->alias] = $this->modelDefaults[$Model->alias];
		// assign new settings
		$this->modelDefaults[$Model->alias] = array_merge($this->modelDefaults[$Model->alias], $settings);
	}
public function permit ( Model $ Model , $ settings = array ( ) ) { // store existing model defaults $ this -> modelDefaultsPersist [ $ Model -> alias ] = $ this -> modelDefaults [ $ Model -> alias ] ; // assign new settings $ this -> modelDefaults [ $ Model -> alias ] = array_merge ( $ this -> modelDefaults [ $ Model -> alias ] , $ settings ) ; }
Used to dynamically assign permit settings

@param Model $Model Model to dynamically assign permissions on
@param array $settings same as the settings used to set-up the model, with the addition of 'persist' (boolean), which will keep the passed settings for all future model calls
@return void
Used to dynamically assign permit settings