Skip to content

Commit

Permalink
access-control: Add shortcut logic for project manager
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Jul 11, 2017
1 parent 942a45b commit 660f634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/AccessControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static boolean isProjectResourceCreatable(User user, Project project, Res
// Site manager, Group admin, Project members can create anything.
if (user.isSiteManager()
|| OrganizationUser.isAdmin(project.organization, user)
|| user.isMemberOf(project)
|| ProjectUser.isManager(user.id, project.id)
|| isAllowedIfGroupMember(project, user)) {
return true;
}
Expand Down

0 comments on commit 660f634

Please sign in to comment.