mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
added more denied project names
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user