mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Return True when list is returned
This commit is contained in:
parent
4d37b4506c
commit
a989624ce6
2 changed files with 4 additions and 4 deletions
|
@ -398,7 +398,7 @@ class MachineType(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return (
|
return (
|
||||||
False,
|
True,
|
||||||
_("You don't have the right to use all machine types."),
|
_("You don't have the right to use all machine types."),
|
||||||
("machines.use_all_machinetype",),
|
("machines.use_all_machinetype",),
|
||||||
cls.objects.filter(
|
cls.objects.filter(
|
||||||
|
@ -1001,7 +1001,7 @@ class Extension(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return (
|
return (
|
||||||
False,
|
True,
|
||||||
_("You don't have the right to list all extensions."),
|
_("You don't have the right to list all extensions."),
|
||||||
("machines.use_all_extension",),
|
("machines.use_all_extension",),
|
||||||
cls.objects.filter(need_infra=False),
|
cls.objects.filter(need_infra=False),
|
||||||
|
@ -2204,7 +2204,7 @@ class IpList(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return (
|
return (
|
||||||
False,
|
True,
|
||||||
_("You don't have the right to use all machine types."),
|
_("You don't have the right to use all machine types."),
|
||||||
("machines.use_all_machinetype",),
|
("machines.use_all_machinetype",),
|
||||||
cls.objects.filter(
|
cls.objects.filter(
|
||||||
|
|
|
@ -2086,7 +2086,7 @@ class Adherent(User):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return (
|
return (
|
||||||
False,
|
True,
|
||||||
_("You don't have the right to list all adherents."),
|
_("You don't have the right to list all adherents."),
|
||||||
("users.view_user",),
|
("users.view_user",),
|
||||||
cls.objects.none(),
|
cls.objects.none(),
|
||||||
|
|
Loading…
Reference in a new issue