Skip to content

Commit

Permalink
Rename to RequiresRoleInService
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Aug 10, 2015
1 parent 487a64e commit c3af584
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SecureResponse

[Authenticate]
[Route("/requiresadmin")]
public class RequiresRole
public class RequiresRoleInService
{
public string Role { get; set; }
}
Expand Down Expand Up @@ -141,7 +141,7 @@ public object Any(Secure request)
throw new UnauthorizedAccessException("You shouldn't be able to see this");
}

public object Any(RequiresRole request)
public object Any(RequiresRoleInService request)
{
RequiredRoleAttribute.AssertRequiredRoles(Request, request.Role ?? RoleNames.Admin);

Expand Down

0 comments on commit c3af584

Please sign in to comment.