diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-07 06:18:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-07 06:18:52 +0300 |
commit | 9d20ce8c998506a1e27c55bbf99cd4c0595185af (patch) | |
tree | 961f5ef4fe5dc03b097d2708b62f974856d770b4 /app/models/members | |
parent | 5ced7473bbf692832c48de1d3f72f0ace3b2d82c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/members')
-rw-r--r-- | app/models/members/project_member.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/models/members/project_member.rb b/app/models/members/project_member.rb index d75a25942c8..3e19f294253 100644 --- a/app/models/members/project_member.rb +++ b/app/models/members/project_member.rb @@ -94,14 +94,7 @@ class ProjectMember < Member override :access_level_inclusion def access_level_inclusion - allowed_values = if ::Feature.enabled?(:personal_project_owner_with_owner_access, - default_enabled: :yaml) - Gitlab::Access.all_values - else - Gitlab::Access.values - end - - unless access_level.in?(allowed_values) + unless access_level.in?(Gitlab::Access.all_values) errors.add(:access_level, "is not included in the list") end end |