forked from e621ng/e621ng
[StaffNotes] Restrict deletions to own notes or admins (#844)
This commit is contained in:
parent
e649523400
commit
f253ea940c
@ -75,7 +75,6 @@ class StaffNote < ApplicationRecord
|
||||
|
||||
def can_delete?(user)
|
||||
return false unless user.is_staff?
|
||||
return true if creator_id == user.id || user.is_admin?
|
||||
user_id != user.id
|
||||
user.id == creator_id || user.is_admin?
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user