Bugzilla – Attachment 149429 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 Titles
Bug-32968-ERM-granular-permissions---EHoldings-Tit.patch (text/plain), 3.78 KB, created by
Pedro Amorim
on 2023-04-11 10:19:12 UTC
(
hide
)
Description:
Bug 32968: ERM granular permissions - EHoldings Titles
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-04-11 10:19:12 UTC
Size:
3.78 KB
patch
obsolete
>From b5b4575aaaba1c9fc0232052114cc94be6ad73db Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 28 Feb 2023 17:56:34 +0000 >Subject: [PATCH] Bug 32968: ERM granular permissions - EHoldings Titles > >Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> >--- > .../js/vue/components/ERM/EHoldingsLocalTitlesList.vue | 5 ++++- > .../js/vue/components/ERM/EHoldingsLocalTitlesShow.vue | 3 +++ > .../js/vue/components/ERM/EHoldingsLocalTitlesToolbar.vue | 7 +++++++ > 3 files changed, 14 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >index de9b39f957c..95990d46eb8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >@@ -54,6 +54,7 @@ export default { > setConfirmationDialog, > setMessage, > eholdings_titles_table_settings, >+ permissions, > } > }, > data: function () { >@@ -86,7 +87,9 @@ export default { > }, > actions: { > 0: ["show"], >- "-1": ["edit", "delete"], >+ ...(permissions.eholdings.write && { >+ "-1": ["edit", "delete"], >+ }), > }, > }, > cannot_search: false, >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue >index e6efc4a339f..8d97408f6cf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue >@@ -5,12 +5,14 @@ > {{ $__("Title #%s").format(title.title_id) }} > <span class="action_links"> > <router-link >+ v-if="permissions.eholdings.write" > :to="`/cgi-bin/koha/erm/eholdings/local/titles/edit/${title.title_id}`" > :title="$__('Edit')" > ><i class="fa fa-pencil"></i > ></router-link> > > <a >+ v-if="permissions.eholdings.write" > @click=" > delete_title(title.title_id, title.publication_title) > " >@@ -271,6 +273,7 @@ export default { > get_lib_from_av, > setConfirmationDialog, > setMessage, >+ permissions, > } > }, > data() { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesToolbar.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesToolbar.vue >index 027af774474..d219e021973 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesToolbar.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesToolbar.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/titles/add" > class="btn btn-default" > ><font-awesome-icon icon="plus" /> >@@ -8,6 +9,7 @@ > > > > <router-link >+ v-if="permissions.eholdings.write" > to="/cgi-bin/koha/erm/eholdings/local/titles/import" > class="btn btn-default" > ><font-awesome-icon icon="plus" /> >@@ -18,6 +20,11 @@ > > <script> > export default { >+ setup() { >+ return { >+ permissions, >+ } >+ }, > name: "EHoldingsLocalTitleToolbar", > } > </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