Fix getCurrentUser()
Fix all()
Added the `permissions`index into the array returned by toArray()