development branch created to preserve working deploy project
This commit is contained in:
@@ -11,6 +11,5 @@ class CompanyUserBackend(ModelBackend):
|
||||
|
||||
perms = super().get_user_permissions(user_obj, obj)
|
||||
if user_obj.company and user_obj.company.is_client:
|
||||
# Filter permissions based on client company context
|
||||
perms = {p for p in perms if p.startswith('accounts.client_')}
|
||||
return perms
|
||||
Reference in New Issue
Block a user