diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-24 22:13:28 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-24 22:13:28 +0300 |
commit | d90462033ef47a8218d2029efddf1614c6051ccd (patch) | |
tree | 5089a8071d201bdd6919e8b0488b25154c7d2c24 /app/models/ability.rb | |
parent | 09cb2ba8151a60056f4d17fb448ed79c31f02bee (diff) | |
download | gitlab-ce-d90462033ef47a8218d2029efddf1614c6051ccd.tar.gz |
Remove writing issues/notes from non-auth user abilities
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 7f044b220a5..26988c5e6a7 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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 |