57 lines
1.9 KiB
Python
57 lines
1.9 KiB
Python
# 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,
|
|
),
|
|
),
|
|
]
|