summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 11:20:14 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 11:20:14 +0400
commitd4543eb5a71bd3aa5bfc24f9fadf07e4fe3d461d (patch)
tree90feed929a77419df84d69869de2a73a5be17bd9 /app/models/ability.rb
parent611ac727450b4fb9214e428cd91f7913d48ed7d8 (diff)
downloadgitlab-ce-d4543eb5a71bd3aa5bfc24f9fadf07e4fe3d461d.tar.gz
Tests fixed
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 2dadb584460..b86a4b5a044 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -55,7 +55,7 @@ class Ability
:read_wiki,
:read_issue,
:read_milestone,
- :read_snippet,
+ :read_project_snippet,
:read_team_member,
:read_merge_request,
:read_note,
@@ -68,7 +68,7 @@ class Ability
def project_report_rules
project_guest_rules + [
:download_code,
- :write_snippet
+ :write_project_snippet
]
end
@@ -84,11 +84,11 @@ class Ability
project_dev_rules + [
:push_code_to_protected_branches,
:modify_issue,
- :modify_snippet,
+ :modify_project_snippet,
:modify_merge_request,
:admin_issue,
:admin_milestone,
- :admin_snippet,
+ :admin_project_snippet,
:admin_team_member,
:admin_merge_request,
:admin_note,