Skip to content

Commit

Permalink
Fixed issue: Non-superadmins cannot delete users
Browse files Browse the repository at this point in the history
  • Loading branch information
markusfluer committed Aug 17, 2016
1 parent d11cc02 commit 572f287
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/models/User.php
Expand Up @@ -345,6 +345,11 @@ class='btn btn-default btn-xs action_usercontrol_button'>
</button>";
if ($this->parent_id != 0 && Permission::model()->hasGlobalPermission('users','delete') )
{
$deleteUrl = Yii::app()->getController()->createUrl('admin/user/sa/deluser', array(
"action"=> "deluser",
"uid"=>$this->uid,
"user" => htmlspecialchars(Yii::app()->user->getId())
));
$deleteUser = "<button
data-toggle='modal'
data-href='#'
Expand Down

0 comments on commit 572f287

Please sign in to comment.