Commit 45e208cb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

added more denied project names
parents 0f7d3f59 f7e93469
...@@ -179,7 +179,7 @@ class Project < ActiveRecord::Base ...@@ -179,7 +179,7 @@ class Project < ActiveRecord::Base
end end
def repo_name 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) if denied_paths.include?(path)
errors.add(:path, "like #{path} is not allowed") errors.add(:path, "like #{path} is not allowed")
......
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