Narzerus/angular-permission — pull request #34 by cojack (2014-12-27 12:29:54+00:00)
Title: Refactor a findMatchingRole

Promises have a .all function that do exactly the same as you, without recursion.

https://www.promisejs.org/patterns/#all