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:
Diffstat (limited to 'lib/api/entities/project.rb')
-rw-r--r--lib/api/entities/project.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/entities/project.rb b/lib/api/entities/project.rb
index 0f947c85633..12e022bfb20 100644
--- a/lib/api/entities/project.rb
+++ b/lib/api/entities/project.rb
@@ -84,6 +84,7 @@ module API
expose(:feature_flags_access_level, documentation: { type: 'string', example: 'enabled' }) { |project, options| project_feature_string_access_level(project, :feature_flags) }
expose(:infrastructure_access_level, documentation: { type: 'string', example: 'enabled' }) { |project, options| project_feature_string_access_level(project, :infrastructure) }
expose(:monitor_access_level, documentation: { type: 'string', example: 'enabled' }) { |project, options| project_feature_string_access_level(project, :monitor) }
+ expose(:model_experiments_access_level, documentation: { type: 'string', example: 'enabled' }) { |project, options| project_feature_string_access_level(project, :model_experiments) }
expose(:emails_disabled, documentation: { type: 'boolean' }) { |project, options| project.emails_disabled? }
expose :emails_enabled, documentation: { type: 'boolean' }
@@ -159,9 +160,6 @@ module API
}
expose :autoclose_referenced_issues, documentation: { type: 'boolean' }
- expose :repository_storage, documentation: { type: 'string', example: 'default' }, if: ->(project, options) {
- Ability.allowed?(options[:current_user], :change_repository_storage, project)
- }
# rubocop: disable CodeReuse/ActiveRecord
def self.preload_resource(project)