aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Authenticate/Attribute.cs
diff options
context:
space:
mode:
authorunknown <crupest@outlook.com>2019-08-07 17:38:56 +0800
committerunknown <crupest@outlook.com>2019-08-07 17:38:56 +0800
commit29bd71cd93b03248254f341aff9252374abc74ec (patch)
treedf5d1325c3b73b17f4f86b71097775e9ce3fa122 /Timeline/Authenticate/Attribute.cs
parent0c0e0c963458aae3ba9589622fc688388833fa9c (diff)
downloadtimeline-29bd71cd93b03248254f341aff9252374abc74ec.tar.gz
timeline-29bd71cd93b03248254f341aff9252374abc74ec.tar.bz2
timeline-29bd71cd93b03248254f341aff9252374abc74ec.zip
Add script to convert encoding and eof. And of course run it.
Diffstat (limited to 'Timeline/Authenticate/Attribute.cs')
-rw-r--r--Timeline/Authenticate/Attribute.cs42
1 files changed, 21 insertions, 21 deletions
diff --git a/Timeline/Authenticate/Attribute.cs b/Timeline/Authenticate/Attribute.cs
index 50b2681d..1875a21b 100644
--- a/Timeline/Authenticate/Attribute.cs
+++ b/Timeline/Authenticate/Attribute.cs
@@ -1,21 +1,21 @@
-using Microsoft.AspNetCore.Authorization;
-using Timeline.Models;
-
-namespace Timeline.Authenticate
-{
- public class AdminAuthorizeAttribute : AuthorizeAttribute
- {
- public AdminAuthorizeAttribute()
- {
- Roles = UserRoles.Admin;
- }
- }
-
- public class UserAuthorizeAttribute : AuthorizeAttribute
- {
- public UserAuthorizeAttribute()
- {
- Roles = UserRoles.User;
- }
- }
-}
+using Microsoft.AspNetCore.Authorization;
+using Timeline.Models;
+
+namespace Timeline.Authenticate
+{
+ public class AdminAuthorizeAttribute : AuthorizeAttribute
+ {
+ public AdminAuthorizeAttribute()
+ {
+ Roles = UserRoles.Admin;
+ }
+ }
+
+ public class UserAuthorizeAttribute : AuthorizeAttribute
+ {
+ public UserAuthorizeAttribute()
+ {
+ Roles = UserRoles.User;
+ }
+ }
+}