show policy
This commit is contained in:
parent
d7057726fb
commit
69427589c6
@ -9,7 +9,7 @@ class StatusPolicy < ApplicationPolicy
|
|||||||
|
|
||||||
def show?
|
def show?
|
||||||
return false if author.suspended?
|
return false if author.suspended?
|
||||||
|
return true if role.can?(:manage_users, :manage_reports)
|
||||||
if requires_mention?
|
if requires_mention?
|
||||||
owned? || mention_exists?
|
owned? || mention_exists?
|
||||||
elsif private?
|
elsif private?
|
||||||
|
Loading…
Reference in New Issue
Block a user