Permalink
Browse files

Default rule skipping to true

  • Loading branch information...
1 parent 7442934 commit f30e5857177fc29fc1085297561390f62292b52e Jose Diaz-Gonzalez committed Nov 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Model/Behavior/PermitBehavior.php
@@ -27,7 +27,7 @@ class PermitBehavior extends ModelBehavior {
* - value: (mixed, optional) The value the check should resolve to. DEFAULTS TO: true
* - field: (string, optional) A `Hash::get()`-compatible string for retrieving the
* from the current record user_id. DEFAULTS TO: %ModelAlias%.user_id
- * - skip: (boolean, optional) Whether to skip rule checking. DEFAULTS TO: false
+ * - skip: (boolean, optional) Whether to skip rule checking. DEFAULTS TO: true
* - rules: (array, optional) If `permit` is set in a `Model::find()`, this key will
* be used to make an index lookup for rules to apply to this find. DEFAULTS TO: empty array
*
@@ -44,7 +44,7 @@ public function setup(Model $Model, $settings = array()) {
'check' => false,
'value' => true,
'field' => $Model->alias . 'user_id',
- 'skip' => false,
+ 'skip' => true,
'rules' => array(),
);
}

0 comments on commit f30e585

Please sign in to comment.