1
0

show policy

This commit is contained in:
whippyshou 2024-04-07 00:12:03 +09:00
parent d7057726fb
commit 69427589c6

View File

@ -9,7 +9,7 @@ class StatusPolicy < ApplicationPolicy
def show?
return false if author.suspended?
return true if role.can?(:manage_users, :manage_reports)
if requires_mention?
owned? || mention_exists?
elsif private?