mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-25 13:33:51 -04:00
FIX: handle posts with no user on needs approval page
This commit is contained in:
parent
c4f93846f9
commit
e2df79ee9e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class QueuedPostSerializer < ApplicationSerializer
|
|||
end
|
||||
|
||||
def include_can_delete_user?
|
||||
user.trust_level == TrustLevel[0]
|
||||
user && user.trust_level == TrustLevel[0]
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue