mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Switched from booleans to integers for permissions flags
This is so that our permissions aggregation query can use MAX(column) which exists and works in both postgres and sqlite, as opposed to having some conditional aggregate function that we use depending on our backend.
This commit is contained in:
parent
014b970030
commit
68d8299689
@ -153,11 +153,11 @@ class RolePermission(CreatedModifiedModel):
|
||||
on_delete=models.CASCADE,
|
||||
related_name='permissions',
|
||||
)
|
||||
create = models.BooleanField(default = False)
|
||||
read = models.BooleanField(default = False)
|
||||
write = models.BooleanField(default = False)
|
||||
update = models.BooleanField(default = False)
|
||||
delete = models.BooleanField(default = False)
|
||||
scm_update = models.BooleanField(default = False)
|
||||
create = models.IntegerField(default = 0)
|
||||
read = models.IntegerField(default = 0)
|
||||
write = models.IntegerField(default = 0)
|
||||
update = models.IntegerField(default = 0)
|
||||
delete = models.IntegerField(default = 0)
|
||||
scm_update = models.IntegerField(default = 0)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user