mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
@@ -12,10 +12,17 @@ public static partial class Errors
|
||||
public static class Authorization
|
||||
{
|
||||
public static Error NotAuthorized => Error.Unauthorized(description: nameof(NotAuthorized));
|
||||
public static Error AdminAccountAlreadyCreated => Error.Unauthorized(description: nameof(AdminAccountAlreadyCreated));
|
||||
public static Error AdminAccountNotFound => Error.Unauthorized(description: nameof(AdminAccountNotFound));
|
||||
public static Error AdminRoleNotFound => Error.Unauthorized(description: nameof(AdminRoleNotFound));
|
||||
public static Error AdminAccountAlreadyCreated => Error.Conflict(description: nameof(AdminAccountAlreadyCreated));
|
||||
public static Error AdminAccountNotFound => Error.NotFound(description: nameof(AdminAccountNotFound));
|
||||
public static Error AdminRoleNotFound => Error.NotFound(description: nameof(AdminRoleNotFound));
|
||||
public static Error RoleNotFound => Error.NotFound(description: nameof(RoleNotFound));
|
||||
public static Error PermissionAlreadyExists => Error.Unauthorized(description: nameof(PermissionAlreadyExists));
|
||||
public static Error RoleAlreadyExists => Error.Unauthorized(description: nameof(RoleAlreadyExists));
|
||||
public static Error RoleAlreadyExists => Error.Conflict(description: nameof(RoleAlreadyExists));
|
||||
public static Error RoleIdCannotBeEmpty => Error.Validation(description: nameof(RoleIdCannotBeEmpty));
|
||||
public static Error PermissionsListCannotBeNull => Error.Validation(description: nameof(PermissionsListCannotBeNull));
|
||||
public static Error PermissionsListCannotBeEmpty => Error.Validation(description: nameof(PermissionsListCannotBeEmpty));
|
||||
public static Error PermissionIdCannotBeEmpty => Error.Validation(description: nameof(PermissionIdCannotBeEmpty));
|
||||
public static Error RoleNameCannotBeEmpty => Error.Validation(description: nameof(RoleNameCannotBeEmpty));
|
||||
public static Error RoleNameCannotBeNull => Error.Validation(description: nameof(RoleNameCannotBeNull));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user