From 65b30458ab21d0e99ca6ee917493e9654b473f57 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 22 Jan 2013 11:47:43 +1100 Subject: [PATCH] Bug 9439 - Enforce superlibrarian mutual exclusivity of other permissions Content-Type: text/plain; charset="utf-8" Basically, when you check the checkbox for the superlibrarian permission in the patron record, it will disable and uncheck all the other permission checkboxes. When you uncheck the checkbox for the superlibrarian permission, it will renable those boxes. There is also some JS code there to ensure that the other boxes are disabled when returning to the change permission screen (i.e. the patch is not just a click handler). In the event that the checkboxes for superlibrarian and other permissions are already checked, the user will be shown a pop-up window explaining that the superlibrarian permission is mutually exclusive to the others (since it already includes the others) and that the permissions for that patron will then be reset to just include the superlibrarian permission. --- .../prog/en/modules/members/member-flags.tt | 31 ++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt index aa1eebd..e72746e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt @@ -7,6 +7,37 @@ -- 1.7.7.4