| | 1 | | using System.Collections.Generic; |
| | 2 | | using MUNity.Database.Models.User; |
| | 3 | |
|
| | 4 | | namespace MUNity.Database.BaseData; |
| | 5 | |
|
| | 6 | | public class DefaultAuthorizations |
| | 7 | | { |
| | 8 | | public static IEnumerable<MunityRole> UserRoles |
| | 9 | | { |
| | 10 | | get |
| 1 | 11 | | { |
| 1 | 12 | | yield return new MunityRole() |
| 1 | 13 | | { |
| 1 | 14 | | Name = "Head-Admin", |
| 1 | 15 | | NormalizedName = "HEAD-ADMIN", |
| 1 | 16 | | CanCreateNewOrganizations = true, |
| 1 | 17 | | IsPlatformAdmin = true |
| 1 | 18 | | }; |
| | 19 | |
|
| 1 | 20 | | yield return new MunityRole() |
| 1 | 21 | | { |
| 1 | 22 | | Name = "Admin", |
| 1 | 23 | | NormalizedName = "ADMIN", |
| 1 | 24 | | CanCreateNewOrganizations = true, |
| 1 | 25 | | IsPlatformAdmin = true |
| 1 | 26 | | }; |
| | 27 | |
|
| 1 | 28 | | yield return new MunityRole() |
| 1 | 29 | | { |
| 1 | 30 | | Name = "Trusted-User", |
| 1 | 31 | | NormalizedName = "TRUSTED-USER", |
| 1 | 32 | | CanCreateNewOrganizations = true, |
| 1 | 33 | | IsPlatformAdmin = false |
| 1 | 34 | | }; |
| 1 | 35 | | } |
| | 36 | | } |
| | 37 | | } |