Same perm check for generic details

This commit is contained in:
2020-10-12 21:44:02 +01:00
parent e926731e67
commit 0f019e26a0
3 changed files with 8 additions and 0 deletions

View File

@@ -252,6 +252,7 @@ class SupplierDetail(GenericDetailView):
context['override'] = "base_ajax.html"
else:
context['override'] = 'base_assets.html'
context['can_edit'] = self.request.user.has_perm('assets.change_supplier')
return context