Correct call to has_perm
This commit is contained in:
parent
57311eda73
commit
091b277f7d
1 changed files with 3 additions and 1 deletions
|
@ -687,7 +687,9 @@ class OrdersHostingDetailView(LoginRequiredMixin,
|
||||||
order_id=order_id
|
order_id=order_id
|
||||||
))
|
))
|
||||||
hosting_order_obj = None
|
hosting_order_obj = None
|
||||||
if not self.request.user.has_perm(hosting_order_obj):
|
if not self.request.user.has_perm(
|
||||||
|
self.permission_required[0], hosting_order_obj
|
||||||
|
):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"User {user} does not have permission on HostingOrder "
|
"User {user} does not have permission on HostingOrder "
|
||||||
"{order_id}. Raising 404 error now.".format(
|
"{order_id}. Raising 404 error now.".format(
|
||||||
|
|
Loading…
Reference in a new issue