Commit 45e208cb1995a4ce22b31e5ca5c533929532098b

Authored by Dmitriy Zaporozhets
2 parents 0f7d3f59 f7e93469

Merge pull request #2287 from Partugal/patch-add-more-restricts-to-project-name

added more denied project names
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/project.rb
@@ -179,7 +179,7 @@ class Project < ActiveRecord::Base @@ -179,7 +179,7 @@ class Project < ActiveRecord::Base
179 end 179 end
180 180
181 def repo_name 181 def repo_name
182 - denied_paths = %w(gitolite-admin groups projects dashboard help ) 182 + denied_paths = %w(gitolite-admin admin dashboard groups help profile projects search)
183 183
184 if denied_paths.include?(path) 184 if denied_paths.include?(path)
185 errors.add(:path, "like #{path} is not allowed") 185 errors.add(:path, "like #{path} is not allowed")