2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

FIX: handle posts with no user on needs approval page

This commit is contained in:
Arpit Jalan 2016-05-20 15:44:19 +05:30
parent c4f93846f9
commit e2df79ee9e

View file

@ -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