diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-08-18 16:12:32 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-08-30 11:39:22 -0700 |
commit | 2bdcef4d672121a387fca6da720d333dda8f7af6 (patch) | |
tree | 21668ef75c4bf9bd73dca89d740b189d5ace1bf0 /lib/api/groups.rb | |
parent | 2b26270ab7c489ebde4aac835f8e7307dc7a7441 (diff) | |
download | gitlab-ce-2bdcef4d672121a387fca6da720d333dda8f7af6.tar.gz |
use a nil subject when we want to check global abilities
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 9d8b8d737a9..f981ec0dbfe 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -30,7 +30,7 @@ module API # Example Request: # POST /groups post do - authorize! :create_group, current_user + authorize! :create_group required_attributes! [:name, :path] attrs = attributes_for_keys [:name, :path, :description, :visibility_level] |