* fix bug: adjust the code the delete a user's priviledge when edit a user profile.
This commit is contained in:
@@ -342,9 +342,9 @@ class userModel extends model
|
||||
}
|
||||
}
|
||||
|
||||
$this->dao->delete()->from(TABLE_USERGROUP)->where('account')->eq($oldUser->account)->exec();
|
||||
if($this->post->groups)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_USERGROUP)->where('account')->eq($oldUser->account)->exec();
|
||||
foreach($this->post->groups as $groupID)
|
||||
{
|
||||
$data->account = $this->post->account;
|
||||
|
||||
Reference in New Issue
Block a user