Remove writing issues/notes from non-auth user abilities
This commit is contained in:
parent
09cb2ba815
commit
d90462033e
1 changed files with 11 additions and 1 deletions
|
@ -30,7 +30,17 @@ class Ability
|
||||||
end
|
end
|
||||||
|
|
||||||
if project && project.public
|
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
|
else
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue