def allows_tag_namespace_for(model_obj, ns, user):
 if (user.is_staff or user.is_superuser):
  return True
 if (not ns.startswith('system:')):
  return True
 return False

def allows_tag_namespace_for ( model_obj , ns , user ) : if ( user . is_staff or user . is_superuser ) : return True if ( not ns . startswith ( 'system:' ) ) : return True return False
decide whether a tag namespace is editable by a user .