Expand HasPermission to take an array of permission nodes