| | | 1 | | using Estud.Back.Domain.Identity; |
| | | 2 | | using Estud.Back.Auth.Permissions; |
| | | 3 | | |
| | | 4 | | namespace Estud.Back.Auth.Roles; |
| | | 5 | | |
| | | 6 | | public static class EstudDefaultRoles |
| | | 7 | | { |
| | 4 | 8 | | public static EstudRole Director => new() |
| | 4 | 9 | | { |
| | 4 | 10 | | OwnerId = null, |
| | 4 | 11 | | Name = "Diretor", |
| | 4 | 12 | | NormalizedName = "DIRETOR", |
| | 4 | 13 | | Description = "Gerencia campi, usuários, perfis, SSO, períodos, turmas, cursos, professores, webhooks, alunos, salas |
| | 4 | 14 | | BaseType = UserType.Manager, |
| | 4 | 15 | | Permissions = [ |
| | 4 | 16 | | EstudPermissions.ManageSso.Id, |
| | 4 | 17 | | EstudPermissions.ManageCampi.Id, |
| | 4 | 18 | | EstudPermissions.ManageUsers.Id, |
| | 4 | 19 | | EstudPermissions.ManageRoles.Id, |
| | 4 | 20 | | EstudPermissions.ManageClasses.Id, |
| | 4 | 21 | | EstudPermissions.ManagePeriods.Id, |
| | 4 | 22 | | EstudPermissions.ManageCourses.Id, |
| | 4 | 23 | | EstudPermissions.ManageTeachers.Id, |
| | 4 | 24 | | EstudPermissions.ManageWebhooks.Id, |
| | 4 | 25 | | EstudPermissions.ManageStudents.Id, |
| | 4 | 26 | | EstudPermissions.ManageClassrooms.Id, |
| | 4 | 27 | | EstudPermissions.ManageDisciplines.Id, |
| | 4 | 28 | | EstudPermissions.ManageNotifications.Id, |
| | 4 | 29 | | EstudPermissions.ManageCourseOfferings.Id, |
| | 4 | 30 | | EstudPermissions.ManageCourseCurriculums.Id, |
| | 4 | 31 | | ], |
| | 4 | 32 | | }; |
| | | 33 | | |
| | 4 | 34 | | public static EstudRole Teacher => new() |
| | 4 | 35 | | { |
| | 4 | 36 | | OwnerId = null, |
| | 4 | 37 | | Name = "Professor", |
| | 4 | 38 | | NormalizedName = "PROFESSOR", |
| | 4 | 39 | | Description = "Ministra aulas e avalia os alunos.", |
| | 4 | 40 | | BaseType = UserType.Teacher, |
| | 4 | 41 | | Permissions = [], |
| | 4 | 42 | | }; |
| | | 43 | | |
| | 4 | 44 | | public static EstudRole Student => new() |
| | 4 | 45 | | { |
| | 4 | 46 | | OwnerId = null, |
| | 4 | 47 | | Name = "Aluno", |
| | 4 | 48 | | NormalizedName = "ALUNO", |
| | 4 | 49 | | Description = "Participa das aulas e é avaliado.", |
| | 4 | 50 | | BaseType = UserType.Student, |
| | 4 | 51 | | Permissions = [], |
| | 4 | 52 | | }; |
| | | 53 | | } |