From 3b06175e8f5cb9d688e8ec376dbfd88abf5f3278 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 10 May 2019 03:48:11 -0500 Subject: Moderation: add `force sensitive` and `force unlisted` actions. Accounts: add federatable `adult content` tag. Handle from remote accounts as well. --- app/policies/account_policy.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'app/policies/account_policy.rb') diff --git a/app/policies/account_policy.rb b/app/policies/account_policy.rb index 9c145979d..f3bda83db 100644 --- a/app/policies/account_policy.rb +++ b/app/policies/account_policy.rb @@ -29,6 +29,22 @@ class AccountPolicy < ApplicationPolicy staff? end + def force_unlisted? + staff? + end + + def allow_public? + staff? + end + + def force_sensitive? + staff? + end + + def allow_nonsensitive? + staff? + end + def redownload? admin? end -- cgit