Skip to content

AuthZ: Not Authorized By Policy #54

@dahlbyk

Description

@dahlbyk

I recently encountered a situation where I wanted to show something if the user doesn't satisfy a policy, e.g.

<button class="btn" asp-authz-policy="AdminPolicy>Delete</button>
<span class="btn btn-disabled" asp-authz-not-policy="AdminPolicy">Delete</span>

Does asp-authz-not-policy seem reasonable to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions