Skip to content

Commit 1b7d510

Browse files
committed
Update simple-acl-controlled-application.rst
1 parent 425e344 commit 1b7d510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,14 @@ implement ``bindNode()`` in ``User`` model::
335335
return array('model' => 'Group', 'foreign_key' => $user['User']['group_id']);
336336
}
337337

338-
and modify the ``actsAs`` for the model ``User`` and disable the requester directive::
338+
Then modify the ``actsAs`` for the model ``User`` and disable the requester directive::
339339

340340
public $actsAs = array('Acl' => array('type' => 'requester', 'enabled' => false));
341341

342342
These two changes will tell ACL to skip checking ``User`` Aro's and to check only ``Group``
343343
Aro's. This also avoids the afterSave being called.
344344

345-
Note: Every user has to have assigned ``group_id`` for this to work.
345+
Note: Every user must have an assigned ``group_id`` for this to work.
346346

347347
Now the ``aros`` table will look like this::
348348

0 commit comments

Comments
 (0)