mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 00:03:28 +01:00
add missing validation for logging
This commit is contained in:
parent
f74d3c4b57
commit
8145ba0914
@ -592,7 +592,7 @@ def save_user_action(user_or_session, friendly_token=None, action="watch", extra
|
|||||||
if not (user or session_key):
|
if not (user or session_key):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if action in ["like", "dislike", "report"]:
|
if action in ["like", "dislike", "watch", "report"]:
|
||||||
if not pre_save_action(
|
if not pre_save_action(
|
||||||
media=media,
|
media=media,
|
||||||
user=user,
|
user=user,
|
||||||
|
Loading…
Reference in New Issue
Block a user