def user_can_edit_snippets(user):
 snippet_models = get_snippet_models()
 for model in snippet_models:
  if user_can_edit_snippet_type(user, model):
   return True
 return False

def user_can_edit_snippets ( user ) : snippet_models = get_snippet_models ( ) for model in snippet_models : if user_can_edit_snippet_type ( user , model ) : return True return False
true if user has add .