diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Acl.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/Acl.php b/app/Model/Acl.php index 8c28cb1a..6042bc29 100644 --- a/app/Model/Acl.php +++ b/app/Model/Acl.php @@ -95,6 +95,18 @@ class Acl extends Base ); /** + * Extend ACL rules + * + * @access public + * @param string $acl_name + * @param aray $rules + */ + public function extend($acl_name, array $rules) + { + $this->$acl_name = array_merge($this->$acl_name, $rules); + } + + /** * Return true if the specified controller/action match the given acl * * @access public |