Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :

Commit 04048ecb authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

VidjilAuth.py: Make sure variable exists

This prevents a server error and preserves backward compatibility.
parent 78af0e25
Pipeline #96994 passed with stages
in 6 minutes and 21 seconds
......@@ -318,7 +318,8 @@ class VidjilAuth(Auth):
:param: id should be an integer
return self.is_admin() or ((self.user_id == id) and (self.user_id not in defs.LIMITED_ACCOUNTS))
return self.is_admin() or\
((self.user_id == id) and (not hasattr(defs, 'LIMITED_ACCOUNTS') or self.user_id not in defs.LIMITED_ACCOUNTS))
def can_modify(self, object_of_action, id, user = None):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment