Skip to content

Commit

Permalink
Hide repository module if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Mar 4, 2020
1 parent 0dfa010 commit 4027871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/project_settings_helper.rb
Expand Up @@ -66,6 +66,7 @@ def project_settings_tabs
{
name: 'repository',
action: { controller: '/project_settings/repository', action: 'show' },
if: ->(project) { project.enabled_module_names.include? 'repository' },
label: :label_repository
},
{
Expand Down

0 comments on commit 4027871

Please sign in to comment.