From c84f6193547370d6786609404e6dbc51f181d7b0 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 May 2017 16:00:37 -0400 Subject: Redo the permission system. --- Project-Unite/ACLAttributes.cs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Project-Unite/ACLAttributes.cs (limited to 'Project-Unite/ACLAttributes.cs') 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 +{ + /// + /// Tells the Unite request router that this view/action requires administrative permissions. + /// + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresAdmin : Attribute + { + } + + /// + /// Tells the Unite request router that this view/action requires developer permissions. + /// + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresDeveloper : Attribute + { + } + + /// + /// Tells the Unite request router that this view/action requires moderator permissions. + /// + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] + public class RequiresModerator : Attribute + { + } + +} \ No newline at end of file -- cgit v1.2.3