mirror of
https://github.com/whippyshou/mastodon
synced 2024-11-27 14:28:55 +09:00
show policy
This commit is contained in:
parent
d7057726fb
commit
69427589c6
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user