diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-31 00:56:46 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-31 00:56:46 +0800 |
commit | 2198ad257a2c049f3601a6f95b8906c5be8b27d5 (patch) | |
tree | 7d034bb824b50d892136c6f1225a15e8baa30741 /Timeline/Authentication/Attribute.cs | |
parent | fbaa8cab95a91b887bbd2d108d27c5abb38e4e29 (diff) | |
download | timeline-2198ad257a2c049f3601a6f95b8906c5be8b27d5.tar.gz timeline-2198ad257a2c049f3601a6f95b8906c5be8b27d5.tar.bz2 timeline-2198ad257a2c049f3601a6f95b8906c5be8b27d5.zip |
Continue to construct feature and tests.
Diffstat (limited to 'Timeline/Authentication/Attribute.cs')
-rw-r--r-- | Timeline/Authentication/Attribute.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Timeline/Authentication/Attribute.cs b/Timeline/Authentication/Attribute.cs deleted file mode 100644 index 370b37e1..00000000 --- a/Timeline/Authentication/Attribute.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Microsoft.AspNetCore.Authorization;
-using Timeline.Entities;
-
-namespace Timeline.Authentication
-{
- public class AdminAuthorizeAttribute : AuthorizeAttribute
- {
- public AdminAuthorizeAttribute()
- {
- Roles = UserRoles.Admin;
- }
- }
-
- public class UserAuthorizeAttribute : AuthorizeAttribute
- {
- public UserAuthorizeAttribute()
- {
- Roles = UserRoles.User;
- }
- }
-}
|