controllers/commands/Role.php
public function cmdPermAddRole()
    {
        list($role_id, $existing, $submitted) = $this->getPermissionsRole();

        $data = array('permissions' => array_unique(array_merge($existing, $submitted)));

        $this->setSubmitted(null, $data);
        $this->setSubmitted('update', $role_id);

        $this->validateComponent('user_role');

        $this->updateRole($role_id);
        $this->output();
    }
public function cmdPermAddRole()
    {
        list($role_id, $existing, $submitted) = $this->getPermissionsRole();

        $data = array('permissions' => array_unique(array_merge($existing, $submitted)));

        $this->setSubmitted(null, $data);
        $this->setSubmitted('update', $role_id);

        $this->validateComponent('user_role');

        $this->updateRole($role_id);
        $this->output();
    }
public function cmdPermAddRole ( ) { list ( $ role_id , $ existing , $ submitted ) = $ this -> getPermissionsRole ( ) ; $ data = array ( 'permissions' => array_unique ( array_merge ( $ existing , $ submitted ) ) ) ; $ this -> setSubmitted ( null , $ data ) ; $ this -> setSubmitted ( 'update' , $ role_id ) ; $ this -> validateComponent ( 'user_role' ) ; $ this -> updateRole ( $ role_id ) ; $ this -> output ( ) ; }
Callback for "role-perm-add" command
Callback for role - perm - add command