Skip to content
Snippets Groups Projects

Make GitLab pages support access control

Merged Tuomo Ala-Vannesluoma requested to merge tuomoa/gitlab-foss:auth into master
All threads resolved!
Compare and Show latest version
4 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -136,7 +136,7 @@ def allowed_access_levels
self.errors.add(field, "cannot have public visibility level") if not_allowed
end
(FEATURES - %i(pages)).each{|f| validator.call("#{f}_access_level")}
(FEATURES - %i(pages)).each {|f| validator.call("#{f}_access_level")}
end
def get_permission(user, level)
Loading