mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Mise à jour de Black vers la version 23.3 (#629)
This commit is contained in:
@ -162,7 +162,6 @@ class GenericContentPermissionMixinBuilder(View):
|
||||
return cls.permission_function(obj, user)
|
||||
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
|
||||
if hasattr(self, "get_object") and callable(self.get_object):
|
||||
self.object = self.get_object()
|
||||
if not self.get_permission_function(self.object, request.user):
|
||||
|
Reference in New Issue
Block a user