hide popup menu options related to aggregation editing for published resource
</li>
{% endif %}
<li id="content-type-separator" role="separator" class="divider"></li>
- {% if page.perms.change and resource_edit_mode and cm.resource_type == "CompositeResource"%}
+ {% if page.perms.change and resource_edit_mode and cm.resource_type == "CompositeResource" and not cm.raccess.published %}
{# ADD METADATA TO A FILE #}
<li id="btn-set-generic-file-type" data-fb-action="setGenericFileType">
<i class="fa fa-plus icon-green" aria-hidden="true"></i>
const SUPPORTE_FILE_TYPES = "{{ cm.get_supported_upload_file_types }}";
const ALLLOW_MULTIPLE_FILE_UPLOAD = "{{ cm.allow_multiple_file_upload }}";
const RESOURCE_MODE = "{% if resource_edit_mode %}Edit{% else %}View{% endif %}";
+ const RESOURCE_PUBLISHED = "{{ cm.raccess.published }}" === "True";
const CURRENT_USER_ID = {{ request.user.id|default:"null" }};
const SHORT_ID = "{{ cm.short_id }}";
const STATIC_URL = "{{ STATIC_URL }}";
