Commit d90462033ef47a8218d2029efddf1614c6051ccd
1 parent
09cb2ba8
Exists in
master
and in
4 other branches
Remove writing issues/notes from non-auth user abilities
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
app/models/ability.rb
@@ -30,7 +30,17 @@ class Ability | @@ -30,7 +30,17 @@ class Ability | ||
30 | end | 30 | end |
31 | 31 | ||
32 | if project && project.public | 32 | if project && project.public |
33 | - public_project_rules | 33 | + [ |
34 | + :read_project, | ||
35 | + :read_wiki, | ||
36 | + :read_issue, | ||
37 | + :read_milestone, | ||
38 | + :read_project_snippet, | ||
39 | + :read_team_member, | ||
40 | + :read_merge_request, | ||
41 | + :read_note, | ||
42 | + :download_code | ||
43 | + ] | ||
34 | else | 44 | else |
35 | [] | 45 | [] |
36 | end | 46 | end |