Added PermissionsMiddleware