summaryrefslogtreecommitdiff
path: root/app/Model/Acl.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-13 14:07:56 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-13 14:07:56 -0400
commita6a00a00400f164c4b18094999a5ed72366dd519 (patch)
tree7d2bfc3fe4a36649f9092463228f4553979aef94 /app/Model/Acl.php
parentc405f99fc8b7420b3e69c633b3259756a1ceb2f2 (diff)
First draft for plugins system
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