Commit 850881a2ef2d89b7eb045f408bf9c8803094e6cf
1 parent
afa9f604
Exists in
master
and in
4 other branches
add admin ability to edit project settings from project area
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/ability.rb
@@ -41,7 +41,7 @@ class Ability | @@ -41,7 +41,7 @@ class Ability | ||
41 | rules << project_guest_rules | 41 | rules << project_guest_rules |
42 | end | 42 | end |
43 | 43 | ||
44 | - if project.owner == user | 44 | + if project.owner == user || user.admin? |
45 | rules << project_admin_rules | 45 | rules << project_admin_rules |
46 | end | 46 | end |
47 | 47 |