Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid v-permission:or check #148

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Sep 26, 2024

Description

Fixes invalid v-permission:or check.

The check expects an array of permissions (denoted with []), but was passed a value enclosed in parentheses instead, which has entirely different semantics (https://stackoverflow.com/a/6949229).

This caused the Vulnerability Policies table to not be displayed, unless the user had the POLICY_MANAGEMENT_DELETE permission.

Addressed Issue

N/A

Additional Details

N/A

Checklist

The check expects an array of permissions (denoted with `[]`), but was passed a value enclosed in parentheses instead, which has entirely different semantics (https://stackoverflow.com/a/6949229).

This caused the Vulnerability Policies table to not be displayed, unless the user had the `POLICY_MANAGEMENT_DELETE` permission.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added the defect Something isn't working label Sep 26, 2024
@nscuro nscuro added this to the 5.6.0 milestone Sep 26, 2024
@nscuro nscuro merged commit 1e493a7 into main Oct 7, 2024
9 checks passed
@nscuro nscuro deleted the fix-invalid-permission-check branch October 7, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant