diff options
Diffstat (limited to 'lib/gitlab/allowable.rb')
-rw-r--r-- | lib/gitlab/allowable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/allowable.rb b/lib/gitlab/allowable.rb index f48abcc86d5..e4f7cad2b79 100644 --- a/lib/gitlab/allowable.rb +++ b/lib/gitlab/allowable.rb @@ -1,6 +1,6 @@ module Gitlab module Allowable - def can?(user, action, subject) + def can?(user, action, subject = :global) Ability.allowed?(user, action, subject) end end |