mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Same perm check for generic details
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user