diff options
| author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-26 00:07:40 +0200 |
|---|---|---|
| committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-03 09:18:46 +0200 |
| commit | 2e9f5de86896e53e9cf34aef52bbc2ad08019a21 (patch) | |
| tree | 48c469b4e8a9f4596f978a2602e4d3b5cfbece86 /app/models/ability.rb | |
| parent | a3d90c5045ae322a013484165cdebcd764dc5d69 (diff) | |
| download | gitlab-ce-2e9f5de86896e53e9cf34aef52bbc2ad08019a21.tar.gz | |
Add parenthesis to function def with arguments.
Diffstat (limited to 'app/models/ability.rb')
| -rw-r--r-- | app/models/ability.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 716a23a4284..e155abc1449 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -184,7 +184,7 @@ class Ability ] end - def group_abilities user, group + def group_abilities(user, group) rules = [] if user.admin? || group.users.include?(user) || ProjectsFinder.new.execute(user, group: group).any? @@ -209,7 +209,7 @@ class Ability rules.flatten end - def namespace_abilities user, namespace + def namespace_abilities(user, namespace) rules = [] # Only namespace owner and administrators can manage it |
