Commit 6e05270b authored by Robert Speicher's avatar Robert Speicher

Merge branch 'confidential-issue-notes' into 'master'

Project members with guest role can't access notes on confidential issues

Related issues:
- https://gitlab.com/gitlab-org/gitlab-ce/issues/18535
- https://gitlab.com/gitlab-org/gitlab-ce/issues/14787

See merge request !1971
parents d8563bd6 7b4e0739
......@@ -49,6 +49,13 @@ describe NotesFinder do
user = create(:user)
expect { NotesFinder.new.execute(project, user, params) }.to raise_error(ActiveRecord::RecordNotFound)
end
it 'raises an error for project members with guest role' do
user = create(:user)
project.team << [user, :guest]
expect { NotesFinder.new.execute(project, user, params) }.to raise_error(ActiveRecord::RecordNotFound)
end
end
end
end
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