Commits

Sebastian Sdorra committed cdb6cde

remove current user check, because it does not work with apache shiro

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/user/DefaultUserManager.java

       throw new ScmSecurityException("user is not authenticated");
     }
 
-    User currentUser = subject.getPrincipals().oneByType(User.class);
-
-    if (!user.equals(currentUser) &&!subject.hasRole(Role.ADMIN))
+    if (!subject.hasRole(Role.ADMIN))
     {
       throw new ScmSecurityException("admin account is required");
     }