added new permission mass-archive instead if limiting mass archiving to admin users
This commit is contained in:
@@ -59,7 +59,7 @@ const exportDisabled = computed(
|
||||
|
||||
const canManageSettings = computed(() => {
|
||||
const permissions = usePage().props?.auth?.user?.permissions || [];
|
||||
return permissions.includes('manage-settings');
|
||||
return permissions.includes("mass-archive");
|
||||
});
|
||||
|
||||
function toggleAllColumns(checked) {
|
||||
@@ -342,7 +342,10 @@ function submitArchive() {
|
||||
>
|
||||
Izvozi v Excel
|
||||
</button>
|
||||
<div v-if="canManageSettings && selectedRows.length" class="flex items-center gap-2">
|
||||
<div
|
||||
v-if="canManageSettings && selectedRows.length"
|
||||
class="flex items-center gap-2"
|
||||
>
|
||||
<span class="text-sm text-gray-600"
|
||||
>{{ selectedRows.length }} izbran{{
|
||||
selectedRows.length === 1 ? "a" : "ih"
|
||||
|
||||
Reference in New Issue
Block a user