* fix bug: adjust the code the delete a user's priviledge when edit a user profile.

This commit is contained in:
chencongzhi520@gmail.com
2013-05-20 05:36:11 +00:00
parent 69b04a2b9a
commit 455f31aa24
+1 -1
View File
@@ -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;