{% if current_user.is_authenticated %} {% set access_to_create_collections_in_root = has_permission(collection.parent, Access.C) %} {% set access_to_create_collections = has_permission(collection, Access.C) %} {% set access_to_update_collections = has_permission(collection, Access.U) %} {% set access_to_delete_collections = has_permission(collection, Access.D) %} {% set access_to_create_section = has_permission(collection, Access.C, EntityType.SECTION) %} {% if access_to_create_collections or access_to_update_collections %}