From 0f3b01eaab82325baaf1c7a4c75a322d3c21a67f Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 18 Feb 2020 02:02:54 -0600 Subject: switch to irc-like oper behavior; require mods & admins to explicitly oper up using `fangs`/`op` bangtag or toggling defang setting in profile; auto-defang after 15 mins or with `defang`/`deop` bangtag --- app/policies/status_policy.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/policies/status_policy.rb') diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb index c573ba7a1..8600183dc 100644 --- a/app/policies/status_policy.rb +++ b/app/policies/status_policy.rb @@ -8,7 +8,7 @@ class StatusPolicy < ApplicationPolicy end def index? - staff? + !defanged? && staff? end def show? @@ -33,13 +33,13 @@ class StatusPolicy < ApplicationPolicy end def destroy? - staff? || owned? + (!defanged? && staff?) || owned? end alias unreblog? destroy? def update? - staff? + (!defanged? && staff?) || owned? end private -- cgit