diff options
| author | Stan Hu <stanhu@gmail.com> | 2015-05-27 05:07:44 -0700 |
|---|---|---|
| committer | Stan Hu <stanhu@gmail.com> | 2015-05-27 05:07:44 -0700 |
| commit | ab88b7da19168c66404dfa9dfeb12110ccb8ceea (patch) | |
| tree | c53bda448881f0efbce6e282558470f939c792d9 /app/models/ability.rb | |
| parent | 4146ce559e8858604ec91d663eac15f9e5379ff0 (diff) | |
| download | gitlab-ce-ab88b7da19168c66404dfa9dfeb12110ccb8ceea.tar.gz | |
Fix project snippets button appearing when it is disabled
Closes #1705
Diffstat (limited to 'app/models/ability.rb')
| -rw-r--r-- | app/models/ability.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index e166b4197fd..4e6c60dc8ca 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -115,7 +115,7 @@ class Ability end unless project.snippets_enabled - rules -= named_abilities('snippet') + rules -= named_abilities('project_snippet') end unless project.wiki_enabled |
