diff options
author | crupest <crupest@outlook.com> | 2020-11-12 21:38:43 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-12 21:38:43 +0800 |
commit | ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b (patch) | |
tree | 221a2af5008e180e180f5400f127a0d404ed5158 /BackEnd/Timeline/Auth/Attribute.cs | |
parent | 2c6b812382e04956793d90ba4148dd4aa7da3b70 (diff) | |
download | timeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.tar.gz timeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.tar.bz2 timeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Auth/Attribute.cs')
-rw-r--r-- | BackEnd/Timeline/Auth/Attribute.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/BackEnd/Timeline/Auth/Attribute.cs b/BackEnd/Timeline/Auth/Attribute.cs deleted file mode 100644 index 86d0109b..00000000 --- a/BackEnd/Timeline/Auth/Attribute.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Microsoft.AspNetCore.Authorization;
-using Timeline.Entities;
-
-namespace Timeline.Auth
-{
- public class AdminAuthorizeAttribute : AuthorizeAttribute
- {
- public AdminAuthorizeAttribute()
- {
- Roles = UserRoles.Admin;
- }
- }
-
- public class UserAuthorizeAttribute : AuthorizeAttribute
- {
- public UserAuthorizeAttribute()
- {
- Roles = UserRoles.User;
- }
- }
-}
|