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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-16 13:46:33 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-16 13:46:33 +0300
commit9d8afa222c678a2222f5219458759897089d7dad (patch)
tree12ee1e84c0b24929ef94acf7d01e2bf32a8fcd50 /app/services/auth
parenteadfc3a156571a2e8188fb8dd8946776a2d1d0ba (diff)
Improve code comments
Diffstat (limited to 'app/services/auth')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index 36120a5bc99..98da6563947 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -90,7 +90,7 @@ module Auth
def build_can_pull?(requested_project)
# Build can:
- # 1. pull from it's own project (for ex. a build)
+ # 1. pull from its own project (for ex. a build)
# 2. read images from dependent projects if creator of build is a team member
@authentication_abilities.include?(:build_read_container_image) &&
(requested_project == project || can?(current_user, :build_read_container_image, requested_project))
@@ -102,7 +102,7 @@ module Auth
end
def build_can_push?(requested_project)
- # Build can push only to project to from which he originates
+ # Build can push only to the project from which it originates
@authentication_abilities.include?(:build_create_container_image) &&
requested_project == project
end