def METHOD_NAME(self):
    # this file is imported in app/__init__.py before current_service is initialised, so need to import later
    # to prevent cyclical imports
    from app import current_service
    # if the current service is inactive and the user isn't a platform admin, we should block them from making any
    # stateful modifications to that service
    if current_service and not current_service.active and not current_user.platform_admin:
        abort(403)