ng-security
ng-security copied to clipboard
Trim permission tokens (ng-if-permission) #11
A comma separated string could be writted with white spaces, at least in my case: ng-if-permission="ROLE_ADMINISTRADOR, ROLE_SUPERVISOR"
It is solved and made the code more robust using trim and split as: permissions = attrs.ngIfPermission.split(/[\s,]+/);