diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 12:08:30 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 12:30:32 +0100 |
commit | dd826a5f20837f33263c658e41a4def0fc932069 (patch) | |
tree | 0b5a37b5a5f9c12bfef330e5286a165eae90fe2f /app/models | |
parent | f749fb7fe0574d07eeb38561b9af62754e518281 (diff) | |
download | gitlab-ce-dd826a5f20837f33263c658e41a4def0fc932069.tar.gz |
Return a consistent not found message
This prevents leakage of project names on an endpoint which is
unauthenticated and thus open to the world.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 2c6b43bafdf..e6ae91f259d 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -77,7 +77,7 @@ class Project < ActiveRecord::Base has_one :last_event, -> {order 'events.created_at DESC'}, class_name: 'Event' has_many :boards, before_add: :validate_board_limit, dependent: :destroy - has_many :chat_services, dependent: :destroy + has_many :chat_services # Project services has_one :campfire_service, dependent: :destroy |