Skip to content

Commit

Permalink
TRUNK-4099 Daemon user cannot save a user
Browse files Browse the repository at this point in the history
(cherry picked from commit 1941264)
  • Loading branch information
rkorytkowski committed Sep 23, 2013
1 parent 3f05b49 commit c1ca288
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -429,7 +429,7 @@ private void checkPrivileges(User user) {
throw new APIException("You must have the role '" + RoleConstants.SUPERUSER + "' in order to assign it.");
if (r.getPrivileges() != null) {
for (Privilege p : r.getPrivileges())
if (!authUser.hasPrivilege(p.getPrivilege()))
if (!Context.hasPrivilege(p.getPrivilege()))
requiredPrivs.add(p.getPrivilege());
}
}
Expand Down

0 comments on commit c1ca288

Please sign in to comment.