Allow operators to manage hosting as a customer
This commit is contained in:
1 parent
3131821afc
commit
9fb42d9625
33 files changed
+551
-88
No files matched your search
@@ -0,0 +1,56 @@
|
||||
# Generated by Django 5.2.19 on 2026-12-04 14:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("hosting", "0098_mailbox_import_preview"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="customerimpersonation",
|
||||
options={
|
||||
"default_permissions": ("view",),
|
||||
"ordering": ("-started_at", "-pk"),
|
||||
"permissions": (
|
||||
("manage_as_customer", "Can manage hosting as a customer"),
|
||||
(
|
||||
"impersonate_customer",
|
||||
"Can view the panel as a customer",
|
||||
),
|
||||
(
|
||||
"write_as_customer",
|
||||
"Can start a support session with write access",
|
||||
),
|
||||
),
|
||||
"verbose_name": "customer impersonation session",
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="customerimpersonation",
|
||||
name="managed_enabled",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="customerimpersonationaction",
|
||||
name="hosting_account_id",
|
||||
field=models.PositiveBigIntegerField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="customerimpersonationaction",
|
||||
name="operation",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("hosting", "Customer hosting action"),
|
||||
("database", "Requested database"),
|
||||
("mailbox", "Requested mailbox"),
|
||||
("add_keys", "Queued SSH key upload"),
|
||||
("remove_key", "Queued SSH key removal"),
|
||||
("revoke_sftp", "Queued SFTP revocation"),
|
||||
],
|
||||
max_length=16,
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user