summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-08-30 11:14:07 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2016-08-30 11:39:22 -0700
commitb7d300001319e38ddb6e57764d51d5d838689ecd (patch)
tree4713e9c47f5515c4d049b784495609469ab479b3 /app/policies
parentfb2979260998a1b7f35d688ef788d34099322b84 (diff)
downloadgitlab-ce-b7d300001319e38ddb6e57764d51d5d838689ecd.tar.gz
line break after guard clause
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/global_policy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb
index 94a2906444a..3c2fbe6b56b 100644
--- a/app/policies/global_policy.rb
+++ b/app/policies/global_policy.rb
@@ -1,6 +1,7 @@
class GlobalPolicy < BasePolicy
def rules
return unless @user
+
can! :create_group if @user.can_create_group
can! :read_users_list
end