mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-21 15:53:21 +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):
|
||||
return False
|
||||
|
||||
if action in ["like", "dislike", "report"]:
|
||||
if action in ["like", "dislike", "watch", "report"]:
|
||||
if not pre_save_action(
|
||||
media=media,
|
||||
user=user,
|
||||
|
Loading…
Reference in New Issue
Block a user