Commit 4b9eab02 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Reject EE reserved namespace paths in CE as well

parent e7b6f39f
...@@ -115,13 +115,20 @@ class DynamicPathValidator < ActiveModel::EachValidator ...@@ -115,13 +115,20 @@ class DynamicPathValidator < ActiveModel::EachValidator
# this would map to the activity-page of it's parent. # this would map to the activity-page of it's parent.
GROUP_ROUTES = %w[ GROUP_ROUTES = %w[
activity activity
analytics
audit_events
avatar avatar
edit edit
group_members group_members
hooks
issues issues
labels labels
ldap
ldap_group_links
merge_requests merge_requests
milestones milestones
notification_setting
pipeline_quota
projects projects
subgroups subgroups
].freeze ].freeze
......
...@@ -36,10 +36,17 @@ class RenameReservedDynamicPaths < ActiveRecord::Migration ...@@ -36,10 +36,17 @@ class RenameReservedDynamicPaths < ActiveRecord::Migration
DISSALLOWED_GROUP_PATHS = %w[ DISSALLOWED_GROUP_PATHS = %w[
activity activity
analytics
audit_events
avatar avatar
group_members group_members
hooks
labels labels
ldap
ldap_group_links
milestones milestones
notification_setting
pipeline_quota
subgroups subgroups
] ]
......
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