diff options
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') |