diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-04-02 19:05:47 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-10 15:46:20 +0200 |
commit | 267a909600e02f0728fec1765adf817acc03d813 (patch) | |
tree | bc3b43e72a5f09793ad9217d0d3ed0eedb0173a2 /app/models/ability.rb | |
parent | d18285257304115a43defc82202d76b0f498f4c3 (diff) | |
download | gitlab-ce-267a909600e02f0728fec1765adf817acc03d813.tar.gz |
Remove edit_note and update_note abilities in favor of admin_note
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 6dae49f38dc..618d4af4272 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -46,10 +46,6 @@ class Ability end end - def can_edit_note?(user, note) - allowed?(user, :edit_note, note) - end - def allowed?(user, action, subject = :global, opts = {}) if subject.is_a?(Hash) opts, subject = subject, :global |