Remove writing issues/notes from non-auth user abilities

This commit is contained in:
Dmitriy Zaporozhets 2013-09-24 22:13:28 +03:00
parent 09cb2ba815
commit d90462033e

View file

@ -30,7 +30,17 @@ class Ability
end
if project && project.public
public_project_rules
[
:read_project,
:read_wiki,
:read_issue,
:read_milestone,
:read_project_snippet,
:read_team_member,
:read_merge_request,
:read_note,
:download_code
]
else
[]
end