protected function deleteUserRole()
    {
        $this->controlAccess('user_role_delete');

        if ($this->role->delete($this->data_role['role_id'])) {
            $this->redirect('admin/user/role', $this->text('Role has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Role has not been deleted'), 'warning');
    }
protected function deleteUserRole()
    {
        $this->controlAccess('user_role_delete');

        if ($this->role->delete($this->data_role['role_id'])) {
            $this->redirect('admin/user/role', $this->text('Role has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Role has not been deleted'), 'warning');
    }
protected function deleteUserRole ( ) { $ this -> controlAccess ( 'user_role_delete' ) ; if ( $ this -> role -> delete ( $ this -> data_role [ 'role_id' ] ) ) { $ this -> redirect ( 'admin/user/role' , $ this -> text ( 'Role has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Role has not been deleted' ) , 'warning' ) ; }
Deletes a user role
Deletes a user role