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

Permissions as an array of abilities doesn't work properly #12

Closed
ionutvladu opened this issue Sep 7, 2022 · 1 comment
Closed

Permissions as an array of abilities doesn't work properly #12

ionutvladu opened this issue Sep 7, 2022 · 1 comment

Comments

@ionutvladu
Copy link

There is a bug in VueSimpleAcl.ts at line 137

if (validCount) {

The if condition is not good

callbackResponse =  evaluateAbilityCallback(callback, ability.abilities, ability.args);
        if (validCount) {
          validCount++;
        }

the fix is

       callbackResponse =  evaluateAbilityCallback(callback, ability.abilities, ability.args);
        if (callbackResponse ) {
          validCount++;
        }
victorybiz added a commit that referenced this issue Sep 8, 2022
victorybiz added a commit that referenced this issue Sep 8, 2022
@victorybiz
Copy link
Owner

Thank you @ionutvladu , issue fixed in v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants