Skip to content

Commit

Permalink
org: Add more authority to site admin
Browse files Browse the repository at this point in the history
Now, site admin can be role of every org admin.
  • Loading branch information
doortts committed Jun 24, 2017
1 parent 6c36e15 commit 15a2855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Organization.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void cleanEnrolledUsers() {

public List<Project> getVisibleProjects(User user) {
List<Project> result = new ArrayList<>();
if(OrganizationUser.isAdmin(this.id, user.id)) {
if(OrganizationUser.isAdmin(this.id, user.id) || user.isSiteManager()) {
result.addAll(this.projects);
} else if(OrganizationUser.isMember(this.id, user.id)) {
for(Project project : this.projects) {
Expand Down

0 comments on commit 15a2855

Please sign in to comment.