API.views: Import requires_roles.