Drop default permissions for when we have defined perms

This commit is contained in:
Joel Falknau 2025-03-05 14:33:37 +10:00
parent 83a41fb982
commit 075d0650b0
No known key found for this signature in database
21 changed files with 195 additions and 3 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fleetactivitytracking', '0008_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='fatlink',
options={'permissions': ()},
),
]

View File

@ -14,7 +14,6 @@ class Fatlink(models.Model):
creator = models.ForeignKey(User, on_delete=models.SET(get_sentinel_user)) creator = models.ForeignKey(User, on_delete=models.SET(get_sentinel_user))
class Meta: class Meta:
default_permissions = ()
permissions = ( permissions = (
# Intentionally Commented out # Intentionally Commented out
# AAv0 has these in the Auth_ Content Type # AAv0 has these in the Auth_ Content Type
@ -35,7 +34,6 @@ class Fat(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE) user = models.ForeignKey(User, on_delete=models.CASCADE)
class Meta: class Meta:
default_permissions = ()
unique_together = (("character", "fatlink"),) unique_together = (("character", "fatlink"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notifications', '0006_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='notification',
options={'permissions': ()},
),
]

View File

@ -59,7 +59,6 @@ class Notification(models.Model):
objects = NotificationManager() objects = NotificationManager()
class Meta: class Meta:
default_permissions = ()
permissions = ( permissions = (
# Intentionally Commented out # Intentionally Commented out
# AAv0 has these in the Auth_ Content Type # AAv0 has these in the Auth_ Content Type

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('discord', '0004_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='discorduser',
options={'default_permissions': (), 'permissions': (('access_discord', 'Can access the Discord service'),)},
),
]

View File

@ -40,6 +40,7 @@ class DiscordUser(models.Model):
objects = DiscordUserManager() objects = DiscordUserManager()
class Meta: class Meta:
default_permissions = ()
permissions = (("access_discord", "Can access the Discord service"),) permissions = (("access_discord", "Can access the Discord service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('discourse', '0003_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='discourseuser',
options={'default_permissions': (), 'permissions': (('access_discourse', 'Can access the Discourse service'),)},
),
]

View File

@ -7,6 +7,7 @@ class DiscourseUser(models.Model):
enabled = models.BooleanField() enabled = models.BooleanField()
class Meta: class Meta:
default_permissions = ()
permissions = (("access_discourse", "Can access the Discourse service"),) permissions = (("access_discourse", "Can access the Discourse service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ips4', '0003_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='ips4user',
options={'default_permissions': (), 'permissions': (('access_ips4', 'Can access the IPS4 service'),)},
),
]

View File

@ -8,6 +8,7 @@ class Ips4User(models.Model):
id = models.CharField(max_length=254) id = models.CharField(max_length=254)
class Meta: class Meta:
default_permissions = ()
permissions = (("access_ips4", "Can access the IPS4 service"),) permissions = (("access_ips4", "Can access the IPS4 service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mumble', '0015_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='mumbleuser',
options={'default_permissions': (), 'permissions': (('access_mumble', 'Can access the Mumble service'), ('view_connection_history', 'Can access the connection history of the Mumble service'))},
),
]

View File

@ -152,6 +152,7 @@ class MumbleUser(AbstractServiceModel):
return True return True
class Meta: class Meta:
default_permissions = ()
permissions = ( permissions = (
("access_mumble", "Can access the Mumble service"), ("access_mumble", "Can access the Mumble service"),
("view_connection_history", "Can access the connection history of the Mumble service"), ("view_connection_history", "Can access the connection history of the Mumble service"),

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('openfire', '0003_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='openfireuser',
options={'default_permissions': (), 'permissions': (('access_openfire', 'Can access the Openfire service'),)},
),
]

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('phpbb3', '0003_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='phpbb3user',
options={'default_permissions': (), 'permissions': (('access_phpbb3', 'Can access the phpBB3 service'),)},
),
]

View File

@ -6,6 +6,7 @@ class Phpbb3User(models.Model):
username = models.CharField(max_length=254) username = models.CharField(max_length=254)
class Meta: class Meta:
default_permissions = ()
permissions = (("access_phpbb3", "Can access the phpBB3 service"),) permissions = (("access_phpbb3", "Can access the phpBB3 service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('smf', '0004_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='smfuser',
options={'default_permissions': (), 'permissions': (('access_smf', 'Can access the SMF service'),)},
),
]

View File

@ -6,6 +6,7 @@ class SmfUser(models.Model):
username = models.CharField(max_length=254) username = models.CharField(max_length=254)
class Meta: class Meta:
default_permissions = ()
permissions = (("access_smf", "Can access the SMF service"),) permissions = (("access_smf", "Can access the SMF service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('teamspeak3', '0006_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='teamspeak3user',
options={'default_permissions': (), 'permissions': (('access_teamspeak3', 'Can access the Teamspeak3 service'),)},
),
]

View File

@ -10,6 +10,7 @@ class Teamspeak3User(models.Model):
perm_key = models.CharField(max_length=254) perm_key = models.CharField(max_length=254)
class Meta: class Meta:
default_permissions = ()
permissions = (("access_teamspeak3", "Can access the Teamspeak3 service"),) permissions = (("access_teamspeak3", "Can access the Teamspeak3 service"),)
def __str__(self) -> str: def __str__(self) -> str:

View File

@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-05 04:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('xenforo', '0003_v5squash'),
]
operations = [
migrations.AlterModelOptions(
name='xenforouser',
options={'default_permissions': (), 'permissions': (('access_xenforo', 'Can access the XenForo service'),)},
),
]

View File

@ -6,6 +6,7 @@ class XenforoUser(models.Model):
username = models.CharField(max_length=254) username = models.CharField(max_length=254)
class Meta: class Meta:
default_permissions = ()
permissions = (("access_xenforo", "Can access the XenForo service"),) permissions = (("access_xenforo", "Can access the XenForo service"),)
def __str__(self) -> str: def __str__(self) -> str: