mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Document undefined permissions to be moved later
This commit is contained in:
parent
ff989ceb3f
commit
c5722411d3
@ -13,6 +13,15 @@ class Fatlink(models.Model):
|
||||
hash = models.CharField(max_length=254, unique=True)
|
||||
creator = models.ForeignKey(User, on_delete=models.SET(get_sentinel_user))
|
||||
|
||||
class Meta:
|
||||
default_permissions = ()
|
||||
permissions = (
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# ('fleetactivitytracking', 'fleetactivitytracking'),
|
||||
# ('fleetactivitytracking_statistics', 'fleetactivitytracking_statistics'),
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.fleet
|
||||
|
||||
@ -26,6 +35,7 @@ class Fat(models.Model):
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
default_permissions = ()
|
||||
unique_together = (("character", "fatlink"),)
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
@ -178,7 +178,7 @@ class AuthGroup(models.Model):
|
||||
("request_groups", _("Can request non-public groups")),
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# ('auth.group_management', 'Can Approve and Deny all Group Requests, Can view and manage all group memberships'))
|
||||
# ('group_management', 'group_management'))
|
||||
)
|
||||
default_permissions = ()
|
||||
|
||||
|
@ -29,6 +29,13 @@ class ApplicationForm(models.Model):
|
||||
questions = SortedManyToManyField(ApplicationQuestion)
|
||||
corp = models.OneToOneField(EveCorporationInfo, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# ('human_resources', 'human_resources'))
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.corp)
|
||||
|
||||
@ -45,8 +52,9 @@ class Application(models.Model):
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
('approve_application', 'Can approve applications'), ('reject_application', 'Can reject applications'),
|
||||
('view_apis', 'Can view applicant APIs'),)
|
||||
('approve_application', 'Can approve applications'),
|
||||
('reject_application', 'Can reject applications'),
|
||||
)
|
||||
unique_together = ('form', 'user')
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
@ -58,6 +58,14 @@ class Notification(models.Model):
|
||||
|
||||
objects = NotificationManager()
|
||||
|
||||
class Meta:
|
||||
default_permissions = ()
|
||||
permissions = (
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# ('logging_notifications', 'logging_notifications')
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.user}: {self.title}"
|
||||
|
||||
|
@ -32,6 +32,12 @@ class OpTimer(models.Model):
|
||||
class Meta:
|
||||
ordering = ["start"]
|
||||
default_permissions = ()
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# permissions = (
|
||||
# ('optimer_view', 'optimer_view'),
|
||||
# ('optimer_management', 'optimer_management'),
|
||||
# )
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.operation_name
|
||||
|
@ -6,7 +6,14 @@ class OpenfireUser(models.Model):
|
||||
username = models.CharField(max_length=254)
|
||||
|
||||
class Meta:
|
||||
permissions = (("access_openfire", "Can access the Openfire service"),)
|
||||
default_permissions = ()
|
||||
permissions = (
|
||||
("access_openfire", "Can access the Openfire service"),
|
||||
# Intentionally Commented out
|
||||
# AAv0 has these in the Auth_ Content Type
|
||||
# ('jabber_broadcast', 'jabber_broadcast'),
|
||||
# ('jabber_broadcast_all', 'jabber_broadcast_all'),
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.username
|
||||
|
Loading…
x
Reference in New Issue
Block a user