mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: if user is logged off return 404 instead of 500
Return correct error when attempting to publish presence for a logged out user.
This commit is contained in:
parent
57d04200a1
commit
f939bdbf44
@ -107,6 +107,9 @@ after_initialize do
|
||||
ACTIONS ||= [-"edit", -"reply"].freeze
|
||||
|
||||
def publish
|
||||
|
||||
raise Discourse::NotFound if !current_user
|
||||
|
||||
data = params.permit(
|
||||
:response_needed,
|
||||
current: [:action, :topic_id, :post_id],
|
||||
|
Loading…
Reference in New Issue
Block a user