diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-11-23 15:47:15 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-11-23 17:44:05 +0100 |
commit | 97f966c445c0c2191a8017aa981a34737b9adf56 (patch) | |
tree | 297294c7ae4b22267da7c88aac70a13263346542 /lib/api/helpers.rb | |
parent | dfbfd3c7d7d4677ac99a7f8147a673911e8d4e98 (diff) | |
download | gitlab-ce-97f966c445c0c2191a8017aa981a34737b9adf56.tar.gz |
Introduce :read_namespace access policy for namespace and group
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 52ac416f9ad..686bf7a3c2b 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -127,7 +127,7 @@ module API def find_namespace!(id) namespace = find_namespace(id) - if can?(current_user, :admin_namespace, namespace) + if can?(current_user, :read_namespace, namespace) namespace else not_found!('Namespace') |