Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-11-23 17:47:15 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2017-11-23 19:44:05 +0300
commit97f966c445c0c2191a8017aa981a34737b9adf56 (patch)
tree297294c7ae4b22267da7c88aac70a13263346542 /lib/api/helpers.rb
parentdfbfd3c7d7d4677ac99a7f8147a673911e8d4e98 (diff)
Introduce :read_namespace access policy for namespace and group
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
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')