First draft for plugins system
This commit is contained in:
@@ -94,6 +94,18 @@ class Acl extends Base
|
||||
'twofactor' => array('disable'),
|
||||
);
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user