diff options
Diffstat (limited to 'lib/api/tags.rb')
-rw-r--r-- | lib/api/tags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb index f918fb997bf..42b63af59e0 100644 --- a/lib/api/tags.rb +++ b/lib/api/tags.rb @@ -7,7 +7,7 @@ module API TAG_ENDPOINT_REQUIREMENTS = API::NAMESPACE_OR_PROJECT_REQUIREMENTS.merge(tag_name: API::NO_SLASH_URL_PART_REGEX) before do - authorize! :read_code, user_project + authorize_read_code! not_found! unless user_project.repo_exists? end |