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
@@ -851,6 +851,17 @@ class MailQueueOperation(ProvisioningJob):
|
||||
action = models.CharField(max_length=8)
|
||||
|
||||
|
||||
class MailDeliverySearch(ProvisioningJob):
|
||||
actor = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL, on_delete=models.CASCADE
|
||||
)
|
||||
domain = models.ForeignKey(HostingMailDomain, on_delete=models.CASCADE)
|
||||
customer_id_at_request = models.PositiveBigIntegerField(null=True)
|
||||
filters = models.JSONField()
|
||||
report = models.JSONField(default=dict)
|
||||
expires_at = models.DateTimeField(db_index=True)
|
||||
|
||||
|
||||
class AccountRetirement(models.Model):
|
||||
class Policy(models.TextChoices):
|
||||
HOLD = "hold", "Keep names reserved"
|
||||
|
||||
Reference in new issue
Block a user