protected function addUserRole()
    {
        $this->controlAccess('user_role_add');

        if ($this->role->add($this->getSubmitted())) {
            $this->redirect('admin/user/role', $this->text('Role has been added'), 'success');
        }

        $this->redirect('', $this->text('Role has not been added'), 'warning');
    }
protected function addUserRole()
    {
        $this->controlAccess('user_role_add');

        if ($this->role->add($this->getSubmitted())) {
            $this->redirect('admin/user/role', $this->text('Role has been added'), 'success');
        }

        $this->redirect('', $this->text('Role has not been added'), 'warning');
    }
protected function addUserRole ( ) { $ this -> controlAccess ( 'user_role_add' ) ; if ( $ this -> role -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/user/role' , $ this -> text ( 'Role has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Role has not been added' ) , 'warning' ) ; }
Adds a new user role
Adds a new user role