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

added more denied project names
This commit is contained in:
Dmitriy Zaporozhets 2012-12-16 08:15:57 -08:00
commit 45e208cb19

View file

@ -179,7 +179,7 @@ class Project < ActiveRecord::Base
end
def repo_name
denied_paths = %w(gitolite-admin groups projects dashboard help )
denied_paths = %w(gitolite-admin admin dashboard groups help profile projects search)
if denied_paths.include?(path)
errors.add(:path, "like #{path} is not allowed")