Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-24 23:13:28 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-24 23:13:28 +0400
commitd90462033ef47a8218d2029efddf1614c6051ccd (patch)
tree5089a8071d201bdd6919e8b0488b25154c7d2c24 /app/models/ability.rb
parent09cb2ba8151a60056f4d17fb448ed79c31f02bee (diff)
Remove writing issues/notes from non-auth user abilities
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb12
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