Skip to content

AuthZ: Not Authorized By Policy #54

@dahlbyk

Description

@dahlbyk
Contributor

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?

Activity

DamianEdwards

DamianEdwards commented on Nov 28, 2022

@DamianEdwards
Owner

Sure, it would just be checking if the user doesn't pass a given authz policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @dahlbyk@DamianEdwards

        Issue actions

          AuthZ: Not Authorized By Policy · Issue #54 · DamianEdwards/TagHelperPack