def auth_sysadmins_check(action):
 @functools.wraps(action)
 def wrapper(context, data_dict):
  return action(context, data_dict)
 wrapper.auth_sysadmins_check = True
 return wrapper

def auth_sysadmins_check ( action ) : @ functools . wraps ( action ) def wrapper ( context , data_dict ) : return action ( context , data_dict ) wrapper . auth_sysadmins_check = True return wrapper
a decorator that prevents sysadmins from being automatically authorized to call an action function .