summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-04-03 16:34:56 -0500
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-06 21:20:16 -0500
commit7deab3172257bef7818ce834c1e0709432ddd5e0 (patch)
treef524ab35e59ac478572a444bea1f847accad410b /spec/policies
parent726f5bbf04b92357a11af34044a0720092797a71 (diff)
downloadgitlab-ce-7deab3172257bef7818ce834c1e0709432ddd5e0.tar.gz
Removes logic from Jwt and handle different scenarios on Gitlab::Auth
- When using 'read_repo' password and project are sent, so we used both of them to fetch for the token - When using 'read_registry' only the password is sent, so we only use that for fetching the token
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/project_policy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb
index 905d82b3bb1..f5d9a58f83c 100644
--- a/spec/policies/project_policy_spec.rb
+++ b/spec/policies/project_policy_spec.rb
@@ -28,7 +28,7 @@ describe ProjectPolicy do
end
let(:team_member_reporter_permissions) do
- %i[build_download_code build_read_container_image]
+ %i[build_download_code project_read_container_image]
end
let(:developer_permissions) do
@@ -54,7 +54,7 @@ describe ProjectPolicy do
let(:public_permissions) do
%i[
download_code fork_project read_commit_status read_pipeline
- read_container_image build_download_code build_read_container_image
+ read_container_image build_download_code project_read_container_image
download_wiki_code
]
end