mirror of
https://github.com/discourse/discourse.git
synced 2025-06-09 16:38:06 +08:00
FIX: handle posts with no user on needs approval page
This commit is contained in:
@ -30,7 +30,7 @@ class QueuedPostSerializer < ApplicationSerializer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def include_can_delete_user?
|
def include_can_delete_user?
|
||||||
user.trust_level == TrustLevel[0]
|
user && user.trust_level == TrustLevel[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user