summaryrefslogtreecommitdiff
path: root/app/Model/Acl.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Acl.php')
-rw-r--r--app/Model/Acl.php12
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