mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 08:23:12 +00:00
[Printer/models] Dummy ACL
This commit is contained in:
parent
1bb39f25ff
commit
cc447ba622
1 changed files with 44 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue