Thormug

Results 3 comments of Thormug

That's the idea. I will need to add a loop to check for every ressources i have. getRessources() will do the job for that. (or passing an array of ressources...

Ok i find my way and this is working for me ``` var getGrantedActionsFor = function({ roles, resources = ac.getResources()}) { if (!Array.isArray(roles)) roles = [roles]; if (!Array.isArray(resources)) resources =...

That's true. Exposing getressources() is problematic. But in my case (it's not in the code I provided), I don't exposed anything client side. The return value by my function is...