diff options
| author | Michael <[email protected]> | 2017-05-09 16:00:37 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-09 16:00:37 -0400 |
| commit | c84f6193547370d6786609404e6dbc51f181d7b0 (patch) | |
| tree | b3b9cad1beadddbfe2de9f736424638275691c91 /Project-Unite/ACLAttributes.cs | |
| parent | cb653f021d2567f69a63414963b0f5ef739cd641 (diff) | |
| download | project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.tar.gz project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.tar.bz2 project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.zip | |
Redo the permission system.
Diffstat (limited to 'Project-Unite/ACLAttributes.cs')
| -rw-r--r-- | Project-Unite/ACLAttributes.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Project-Unite/ACLAttributes.cs b/Project-Unite/ACLAttributes.cs new file mode 100644 index 0000000..a043daf --- /dev/null +++ b/Project-Unite/ACLAttributes.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace Project_Unite +{ + /// <summary> + /// Tells the Unite request router that this view/action requires administrative permissions. + /// </summary> + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresAdmin : Attribute + { + } + + /// <summary> + /// Tells the Unite request router that this view/action requires developer permissions. + /// </summary> + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresDeveloper : Attribute + { + } + + /// <summary> + /// Tells the Unite request router that this view/action requires moderator permissions. + /// </summary> + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresModerator : Attribute + { + } + +}
\ No newline at end of file |
