summaryrefslogtreecommitdiff
path: root/lib/gitlab/allowable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/allowable.rb')
-rw-r--r--lib/gitlab/allowable.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/allowable.rb b/lib/gitlab/allowable.rb
new file mode 100644
index 00000000000..f48abcc86d5
--- /dev/null
+++ b/lib/gitlab/allowable.rb
@@ -0,0 +1,7 @@
+module Gitlab
+ module Allowable
+ def can?(user, action, subject)
+ Ability.allowed?(user, action, subject)
+ end
+ end
+end