Fixed attend route, added permissions mappings and user/id/permissions
route.