Bugzilla – Attachment 149428 Details for
Bug 32968
Create granular permissions for ERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32968: ERM granular permissions - EHoldings Packages
Bug-32968-ERM-granular-permissions---EHoldings-Pac.patch (text/plain), 3.55 KB, created by
Pedro Amorim
on 2023-04-11 10:19:09 UTC
(
hide
)
Description:
Bug 32968: ERM granular permissions - EHoldings Packages
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-04-11 10:19:09 UTC
Size:
3.55 KB
patch
obsolete
>From 0460bfd6edd2f477cd84d511c47b368f068a7655 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 28 Feb 2023 17:56:10 +0000 >Subject: [PATCH] Bug 32968: ERM granular permissions - EHoldings Packages > >Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> >--- > .../js/vue/components/ERM/EHoldingsLocalPackagesList.vue | 5 ++++- > .../js/vue/components/ERM/EHoldingsLocalPackagesShow.vue | 3 +++ > .../js/vue/components/ERM/EHoldingsLocalPackagesToolbar.vue | 6 ++++++ > 3 files changed, 13 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >index 14f9832e507..bead52ec5fe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >@@ -56,6 +56,7 @@ export default { > setMessage, > escape_str, > eholdings_packages_table_settings, >+ permissions, > } > }, > data: function () { >@@ -95,7 +96,9 @@ export default { > }, > actions: { > 0: ["show"], >- "-1": ["edit", "delete"], >+ ...(permissions.eholdings.write && { >+ "-1": ["edit", "delete"], >+ }), > }, > }, > } >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue >index 5cf5455f56b..1778407a66b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue >@@ -5,12 +5,14 @@ > {{ $__("Package #%s").format(erm_package.package_id) }} > <span class="action_links"> > <router-link >+ v-if="permissions.eholdings.write" > :to="`/cgi-bin/koha/erm/eholdings/local/packages/edit/${erm_package.package_id}`" > :title="$__('Edit')" > ><i class="fa fa-pencil"></i > ></router-link> > > <a >+ v-if="permissions.eholdings.write" > @click=" > delete_package(erm_package.package_id, erm_package.name) > " >@@ -121,6 +123,7 @@ export default { > get_lib_from_av, > setConfirmationDialog, > setMessage, >+ permissions, > } > }, > data() { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesToolbar.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesToolbar.vue >index 6b31743d057..0e708f7fd47 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesToolbar.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesToolbar.vue >@@ -1,6 +1,7 @@ > <template> > <div id="toolbar" class="btn-toolbar"> > <router-link >+ v-if="permissions.eholdings.write" > to="/cgi-bin/koha/erm/eholdings/local/packages/add" > class="btn btn-default" > ><font-awesome-icon icon="plus" /> >@@ -11,6 +12,11 @@ > > <script> > export default { >+ setup() { >+ return { >+ permissions, >+ } >+ }, > name: "EHoldingsLocalPackagesToolbar", > } > </script> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32968
:
146698
|
147466
|
147510
|
147511
|
147513
|
147514
|
147515
|
147516
|
147517
|
147518
|
147559
|
148797
|
148798
|
148799
|
148800
|
148801
|
148802
|
148803
|
148804
|
148959
|
148960
|
148961
|
148962
|
148963
|
148964
|
148965
|
148966
|
149423
|
149424
|
149425
|
149426
|
149427
|
149428
|
149429
|
149430
|
150060
|
150061
|
150062
|
150063
|
150064
|
150065
|
150066
|
150067