Enforcing useracl permissions

This commit is contained in:
Eduardo Silva 2024-04-04 11:18:46 -03:00
parent 07cd83fb03
commit 6a53c8bc97
8 changed files with 80 additions and 26 deletions

View file

@ -6,10 +6,10 @@ import uuid
class UserAcl(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
user_level = models.PositiveIntegerField(default=0, choices=(
(10, 'Debugging Analyst'),
(20, 'View Only User'),
(30, 'Peer Manager'),
(40, 'Manager'),
(10, 'Viewer'),
(20, 'Backup Operator'),
(30, 'Host Manager'),
(40, 'configuration Manager'),
(50, 'Administrator'),
))