diff options
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 |
