diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-08-16 12:05:44 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-08-30 11:39:22 -0700 |
commit | 16fe6dc7b159a0e6b68a586065de1f95d6acecfa (patch) | |
tree | afcf34e0af423e603a915dbda365a4ab5e608d74 /app/models/ability.rb | |
parent | 092861093066f6b474c2dc72de34acf64380a3e6 (diff) | |
download | gitlab-ce-16fe6dc7b159a0e6b68a586065de1f95d6acecfa.tar.gz |
port CommitStatus/Build
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index b8e3e97b351..c89cc9b2e17 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -74,7 +74,8 @@ class Ability when Issue then IssuePolicy.abilities(user, subject) when MergeRequest then MergeRequestPolicy.abilities(user, subject) - when CommitStatus then commit_status_abilities(user, subject) + when Ci::Build then Ci::BuildPolicy.abilities(user, subject) + when CommitStatus then CommitStatus.abilities(user, subject) when Note then note_abilities(user, subject) when ProjectSnippet then project_snippet_abilities(user, subject) when PersonalSnippet then personal_snippet_abilities(user, subject) |