Hide export and import links if user does not have 'manage_tainacan' capability.
This commit is contained in:
parent
a9ae240e6f
commit
710f94ccc0
|
@ -103,7 +103,7 @@
|
||||||
<span class="menu-text">{{ $i18n.get('capabilities') }}</span>
|
<span class="menu-text">{{ $i18n.get('capabilities') }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="!$adminOptions.hidePrimaryMenuImportersButton">
|
<li v-if="!$adminOptions.hidePrimaryMenuImportersButton && $userCaps.hasCapability('manage_tainacan')">
|
||||||
<router-link
|
<router-link
|
||||||
tag="a"
|
tag="a"
|
||||||
to="/importers"
|
to="/importers"
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
<span class="menu-text menu-text-import">{{ $i18n.get('importers') }}</span>
|
<span class="menu-text menu-text-import">{{ $i18n.get('importers') }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="!$adminOptions.hidePrimaryMenuExportersButton">
|
<li v-if="!$adminOptions.hidePrimaryMenuExportersButton && $userCaps.hasCapability('manage_tainacan')">
|
||||||
<router-link
|
<router-link
|
||||||
tag="a"
|
tag="a"
|
||||||
to="/exporters"
|
to="/exporters"
|
||||||
|
|
|
@ -51,12 +51,11 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<ul class="repository-subheader-icons">
|
<ul class="repository-subheader-icons">
|
||||||
<li>
|
<li v-if="!isRepositoryLevel && !$adminOptions.hideRepositorySubheaderExportButton && $userCaps.hasCapability('manage_tainacan')">
|
||||||
<a
|
<a
|
||||||
@click="openAvailableExportersModal"
|
@click="openAvailableExportersModal"
|
||||||
class="button"
|
class="button"
|
||||||
id="exporter-collection-button"
|
id="exporter-collection-button"
|
||||||
v-if="!isRepositoryLevel && !$adminOptions.hideRepositorySubheaderExportButton"
|
|
||||||
:aria-label="$i18n.get('exporters')">
|
:aria-label="$i18n.get('exporters')">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="tainacan-icon tainacan-icon-1-25em tainacan-icon-export"/>
|
<i class="tainacan-icon tainacan-icon-1-25em tainacan-icon-export"/>
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
<span class="menu-text">{{ $i18n.get('title_repository_activities_page') }}</span>
|
<span class="menu-text">{{ $i18n.get('title_repository_activities_page') }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="!$adminOptions.hideHomeImportersButton">
|
<li v-if="!$adminOptions.hideHomeImportersButton && $userCaps.hasCapability('manage_tainacan')">
|
||||||
<router-link
|
<router-link
|
||||||
tag="a"
|
tag="a"
|
||||||
to="/importers">
|
to="/importers">
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
<span class="menu-text menu-text-import">{{ $i18n.get('importers') }}</span>
|
<span class="menu-text menu-text-import">{{ $i18n.get('importers') }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="!$adminOptions.hideHomeExportersButton">
|
<li v-if="!$adminOptions.hideHomeExportersButton && $userCaps.hasCapability('manage_tainacan')">
|
||||||
<router-link
|
<router-link
|
||||||
tag="a"
|
tag="a"
|
||||||
to="/exporters">
|
to="/exporters">
|
||||||
|
|
|
@ -41,7 +41,9 @@
|
||||||
<small class="is-small">{{ $i18n.get('info_preset_collections') }}</small>
|
<small class="is-small">{{ $i18n.get('info_preset_collections') }}</small>
|
||||||
</div>
|
</div>
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
<b-dropdown-item aria-role="listitem">
|
<b-dropdown-item
|
||||||
|
v-if="$userCaps.hasCapability('manage_tainacan')"
|
||||||
|
aria-role="listitem">
|
||||||
<div
|
<div
|
||||||
id="a-import-collection"
|
id="a-import-collection"
|
||||||
tag="div"
|
tag="div"
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
<b-dropdown-item
|
<b-dropdown-item
|
||||||
v-if="!$adminOptions.hideItemsListCreationDropdownImport"
|
v-if="!$adminOptions.hideItemsListCreationDropdownImport && $userCaps.hasCapability('manage_tainacan')"
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<div
|
<div
|
||||||
id="a-import-items"
|
id="a-import-items"
|
||||||
|
|
Loading…
Reference in New Issue