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:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-07 03:14:10 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-07 03:17:38 +0300
commit9db87fce130bdcb4831631c46fbb9d5717472af2 (patch)
tree63ee8dec19816edb6d4a3f71a9c6ce61f0e71779 /app/models/concerns/protected_ref_access.rb
parent8a5ca1121b090fe813144adf4428e7cb656b65d3 (diff)
Protected tags changes from backend maintainer review
Diffstat (limited to 'app/models/concerns/protected_ref_access.rb')
-rw-r--r--app/models/concerns/protected_ref_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/protected_ref_access.rb b/app/models/concerns/protected_ref_access.rb
index 0c7e5157cdf..c4f158e569a 100644
--- a/app/models/concerns/protected_ref_access.rb
+++ b/app/models/concerns/protected_ref_access.rb
@@ -11,7 +11,7 @@ module ProtectedRefAccess
end
def check_access(user)
- return true if user.is_admin?
+ return true if user.admin?
project.team.max_member_access(user.id) >= access_level
end