diff options
author | jubianchi <contact@jubianchi.fr> | 2015-01-30 10:46:08 +0100 |
---|---|---|
committer | jubianchi <contact@jubianchi.fr> | 2015-02-03 13:42:38 +0100 |
commit | 4e97f26649a7756bef843fca74e3c58eadd117e1 (patch) | |
tree | 3df8a8967811007ca81c863d09e2767799479829 /lib/api/groups.rb | |
parent | a073e00ab41b5fa4979b021b55cf184ffc104fb9 (diff) | |
download | gitlab-ce-4e97f26649a7756bef843fca74e3c58eadd117e1.tar.gz |
Acces groups with their path in API
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 730dfad52c8..384a28e41f5 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -4,22 +4,6 @@ module API before { authenticate! } resource :groups do - helpers do - def find_group(id) - group = Group.find(id) - - if can?(current_user, :read_group, group) - group - else - render_api_error!("403 Forbidden - #{current_user.username} lacks sufficient access to #{group.name}", 403) - end - end - - def validate_access_level?(level) - Gitlab::Access.options_with_owner.values.include? level.to_i - end - end - # Get a groups list # # Example Request: |