summaryrefslogtreecommitdiff
path: root/app/Model/Acl.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-12 14:44:28 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-12 14:44:28 -0400
commite515f37435db6cf883215f13f02391d8b2107d47 (patch)
tree3df01bc0c420a2c497302c5a38aa9d724b2e764c /app/Model/Acl.php
parente57386a18393e85f073cccff70699ad9afc19119 (diff)
Add user CSV import
Diffstat (limited to 'app/Model/Acl.php')
-rw-r--r--app/Model/Acl.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/Acl.php b/app/Model/Acl.php
index 675ca36e..d05e4f77 100644
--- a/app/Model/Acl.php
+++ b/app/Model/Acl.php
@@ -88,6 +88,7 @@ class Acl extends Base
*/
private $admin_acl = array(
'user' => array('index', 'create', 'save', 'remove', 'authentication'),
+ 'userimport' => '*',
'config' => '*',
'link' => '*',
'currency' => '*',
@@ -117,6 +118,7 @@ class Acl extends Base
*/
public function matchAcl(array $acl, $controller, $action)
{
+ $controller = strtolower($controller);
$action = strtolower($action);
return isset($acl[$controller]) && $this->hasAction($action, $acl[$controller]);
}