Commit a607a7e8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add methods needed for passing policy check

They're probably needed for:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20729
parent a581112c
......@@ -3,6 +3,8 @@ class DeployToken < ActiveRecord::Base
include TokenAuthenticatable
add_authentication_token_field :token
prepend EE::DeployToken
AVAILABLE_SCOPES = %i(read_repository read_registry).freeze
GITLAB_DEPLOY_TOKEN_NAME = 'gitlab-deploy-token'.freeze
......
module EE
module DeployToken
def auditor?
false
end
def support_bot?
false
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment