Commit c6794b33 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Change project_permissions_panel_data method so you can override it in EE

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1e02e531
......@@ -29,16 +29,16 @@ module EE
end
override :project_permissions_settings
def project_permissions_settings
def project_permissions_settings(project)
super.merge(
packagesEnabled: !!project.packages_enabled
)
end
override :project_permissions_panel_data
def project_permissions_panel_data
def project_permissions_panel_data(project)
super.merge(
packagesAvailable: Gitlab.config.packages.enabled,
packagesAvailable: ::Gitlab.config.packages.enabled,
packagesHelpPath: help_page_path('user/project/maven_packages')
)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment