summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorGeorge Koltsov <koltsov.george@gmail.com>2019-08-29 16:49:22 +0000
committerRémy Coutable <remy@rymai.me>2019-08-29 16:49:22 +0000
commit34d142e593827df932651aaacebcd3914ba7d923 (patch)
tree885fb2888a8c2883fee3fe26a752137c3f737b26 /app/models/project.rb
parentde651ce8020693ee0d6cef0f8b7eeae59c31afde (diff)
downloadgitlab-ce-34d142e593827df932651aaacebcd3914ba7d923.tar.gz
Allow project feature permissions to be overridden during import
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index c67c5c7bc8c..8f568a5b840 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -61,6 +61,8 @@ class Project < ApplicationRecord
delegate :feature_available?, :builds_enabled?, :wiki_enabled?,
:merge_requests_enabled?, :issues_enabled?, :pages_enabled?, :public_pages?,
+ :merge_requests_access_level, :issues_access_level, :wiki_access_level,
+ :snippets_access_level, :builds_access_level, :repository_access_level,
to: :project_feature, allow_nil: true
delegate :base_dir, :disk_path, :ensure_storage_path_exists, to: :storage