add admin ability to edit project settings from project area

This commit is contained in:
Dmitriy Zaporozhets 2013-03-25 10:46:57 +02:00
parent afa9f6045a
commit 850881a2ef

View file

@ -41,7 +41,7 @@ class Ability
rules << project_guest_rules
end
if project.owner == user
if project.owner == user || user.admin?
rules << project_admin_rules
end