Skip to content

Commit

Permalink
Merge f946b70 into d842618
Browse files Browse the repository at this point in the history
  • Loading branch information
USI-SHRD committed Jun 21, 2018
2 parents d842618 + f946b70 commit e6b78c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ def write(self, vals):
raise UserError(u'系统用户不可修改')
# 如果管理员将自己的系统管理权限去掉,则报错
else:
if not self.env.user.has_group('base.group_erp_manager'):
if not self.env.user.has_group('base.group_erp_manager'): # pragma: no cover
raise UserError(u'不能删除管理员的管理权限')
return res

0 comments on commit e6b78c9

Please sign in to comment.