Add user CSV import

This commit is contained in:
Frederic Guillot
2015-10-12 14:44:28 -04:00
parent e57386a183
commit e515f37435
20 changed files with 514 additions and 35 deletions

View File

@@ -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]);
}