def empty_if_not_sysadmin(key, data, errors, context):
 from ckan.lib.navl.validators import empty
 user = context.get('user')
 ignore_auth = context.get('ignore_auth')
 if (ignore_auth or (user and authz.is_sysadmin(user))):
  return
 empty(key, data, errors, context)

def empty_if_not_sysadmin ( key , data , errors , context ) : from ckan . lib . navl . validators import empty user = context . get ( 'user' ) ignore_auth = context . get ( 'ignore_auth' ) if ( ignore_auth or ( user and authz . is_sysadmin ( user ) ) ) : return empty ( key , data , errors , context )
only sysadmins may pass this value .