added more denied project names
This commit is contained in:
parent
120f50cff4
commit
f7e934696c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue