def _user_is_admin(object_list, bundle):
 if (settings.CENTRAL_SERVER and _is_central_object_admin(object_list, bundle)):
  return True
 if getattr(bundle.request, 'is_admin', False):
  return True

def _user_is_admin ( object_list , bundle ) : if ( settings . CENTRAL_SERVER and _is_central_object_admin ( object_list , bundle ) ) : return True if getattr ( bundle . request , 'is_admin' , False ) : return True
returns true if and only if the currently logged in user is an admin/teacher .