feat(rbac): add benefits and reception modules to RBAC matrix and register Recepcion role (v3.8.44)

This commit is contained in:
2026-10-28 07:19:16 -03:00
parent 1fc653dce8
commit aaf8281e86
12 changed files with 173 additions and 54 deletions
+32 -4
View File
@@ -205,7 +205,9 @@ def init_database():
'users': 'read_write',
'milestone_types': 'read_write',
'metrics': 'read_write',
'enrollment': 'read_write'
'enrollment': 'read_write',
'benefits': 'read_write',
'reception': 'read_write'
}
},
{
@@ -223,7 +225,9 @@ def init_database():
'users': 'none',
'milestone_types': 'read',
'metrics': 'none',
'enrollment': 'read'
'enrollment': 'read',
'benefits': 'read',
'reception': 'none'
}
},
{
@@ -241,7 +245,9 @@ def init_database():
'users': 'none',
'milestone_types': 'read_write',
'metrics': 'read_write',
'enrollment': 'read_write'
'enrollment': 'read_write',
'benefits': 'read_write',
'reception': 'read'
}
},
{
@@ -259,7 +265,29 @@ def init_database():
'users': 'none',
'milestone_types': 'read',
'metrics': 'none',
'enrollment': 'read'
'enrollment': 'read',
'benefits': 'read',
'reception': 'none'
}
},
{
'name': 'Recepcion',
'description': 'Control de accesos a sedes, validacion y escaneo de credenciales QR de alumnos y docentes',
'is_system': True,
'permissions': {
'classrooms': 'read',
'buildings': 'read',
'reservations': 'none',
'schedule': 'read',
'academic': 'none',
'import': 'none',
'optimizer': 'none',
'users': 'read',
'milestone_types': 'none',
'metrics': 'none',
'enrollment': 'none',
'benefits': 'read',
'reception': 'read_write'
}
}
]