From cc447ba62227c09fc9f1f52df8e610e586226417 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sat, 6 Oct 2018 22:13:35 +0200 Subject: [PATCH] [Printer/models] Dummy ACL --- printer/models.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/printer/models.py b/printer/models.py index a0c43b7b..8e8f211f 100644 --- a/printer/models.py +++ b/printer/models.py @@ -158,3 +158,47 @@ class JobWithOptions(RevMixin, models.Model): total_price = math.floor(self.count * (price_ink + price_stapling)) return float(total_price)/100 + + @staticmethod + def can_view_all(user_request, *_args, **_kwargs): + """ + """ + return ( + True, None + ) + + + @staticmethod + def can_create(user_request, *_args, **_kwargs): + """ + """ + return( + True, None + ) + + + @staticmethod + def can_view(user_request, *_args, **_kwargs): + """ + """ + return( + True, None + ) + + + @staticmethod + def can_edit(user_request, *_args, **_kwargs): + """ + """ + return( + True, None + ) + + @staticmethod + def can_delete(user_request, *_args, **_kwargs): + """ + + """ + return( + True, None + )