Enforce manager boundaries and add scoped mail delivery history
This commit is contained in:
1 parent
377344e591
commit
5611395cd2
20 files changed
+706
-210
No files matched your search
@@ -44,6 +44,12 @@ def manages_account(user, account):
|
||||
return reseller is not None and account.reseller_id == reseller.pk
|
||||
|
||||
|
||||
def can_manage_hosting(user, permissions):
|
||||
return customer_for_user(user) is not None or (
|
||||
not is_tenant(user) and user.has_perms(permissions)
|
||||
)
|
||||
|
||||
|
||||
def panel_access(request):
|
||||
customer = customer_for_user(request.user) is not None
|
||||
reseller = not customer and reseller_for_user(request.user) is not None
|
||||
|
||||
Reference in new issue
Block a user