Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

whatResources() does not handle wildcard #18

Open
glachac opened this Issue · 2 comments

2 participants

@glachac

Take the following example:

acl.allow('superuser','user.management','*',cb);

acl.whatResources('superuser','read',cb(resources){
          console.log("Resources: %j",resources);
})

My understanding of the wildcard means that 'superuser' should have all permission on 'user.managment'. So the log should output "user.management" as a valid resource, but instead the output is empty. If I replace 'read' with '*' it works, suggesting it is only matching strings, not the wildcard logic.

@manast
Owner

Hello,

this must be a bug. Is it a showstopper for you, or do you have some workaround?

@manast manast was assigned
@glachac

Not a showstopper. I've worked around it using only a single permission so a wildcard isn't necessary, but I'll need to move to multiple permissions in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.