diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
commit | 9a163719b76958374d1c27616393368e54e8b8a5 (patch) | |
tree | b005aa3d8bc34d8e710ce7fae30236c62dcbe712 /Timeline/Authenticate/Attribute.cs | |
parent | 3ddb38839ac07de4edf071faeb753b62acb0bed1 (diff) | |
download | timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.gz timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.bz2 timeline-9a163719b76958374d1c27616393368e54e8b8a5.zip |
...
Diffstat (limited to 'Timeline/Authenticate/Attribute.cs')
-rw-r--r-- | Timeline/Authenticate/Attribute.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Timeline/Authenticate/Attribute.cs b/Timeline/Authenticate/Attribute.cs deleted file mode 100644 index 239a2a1c..00000000 --- a/Timeline/Authenticate/Attribute.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Microsoft.AspNetCore.Authorization;
-using Timeline.Entities;
-
-namespace Timeline.Authenticate
-{
- public class AdminAuthorizeAttribute : AuthorizeAttribute
- {
- public AdminAuthorizeAttribute()
- {
- Roles = UserRoles.Admin;
- }
- }
-
- public class UserAuthorizeAttribute : AuthorizeAttribute
- {
- public UserAuthorizeAttribute()
- {
- Roles = UserRoles.User;
- }
- }
-}
|