Commit 4e2ea9ed authored by Valery Sizov's avatar Valery Sizov

Fix app/models/ability.rb

parent 283b6fb4
......@@ -192,7 +192,9 @@ class Ability
rules = []
# Push abilities on the users team role
rules.push(*project_team_rules(project.team, user))
rules << :change_repository_storage if user.admin?
owner = user.admin? ||
project.owner == user ||
(project.group && project.group.has_owner?(user))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment