We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
that's just a minor optimization, but Acl will use a lot the indexOfquery to determinate whether an user can or cannot access a page/ do something.
indexOf
Mind changing the loop to increase a bit the performance ? http://jsperf.com/fastest-array-loops-in-javascript/295
I'd recommand:
var l = arr.length; for(;l--;) { someFn(arr[l]); } postLoop();
The text was updated successfully, but these errors were encountered:
6a06af8
Adding function hasAnyRole
10d8c19
You can check if user has a role. using hasAnyRole method ([ 'admin', 'manager'])
No branches or pull requests
that's just a minor optimization, but Acl will use a lot the
indexOf
query to determinate whether an user can or cannot access a page/ do something.Mind changing the loop to increase a bit the performance ?
http://jsperf.com/fastest-array-loops-in-javascript/295
I'd recommand:
The text was updated successfully, but these errors were encountered: