[Koha-bugs] [Bug 27025] jQuery testing with specific user

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 8 01:15:22 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27025

--- Comment #2 from Christopher Brannon <cbrannon at cdalibrary.org> ---
I've been thinking more about this, and how to make this more practical.  I
think there should be a superlibrarian tab in the side tabs in the user account
(obviously that only shows if the user is a superlibrarian, and it is the same
account that is logged in.

Under that tab, there would be fields like OPAC and Staff jQuery and CSS.  If
left blank, the normal fields in administration are used.  If one of these
superlibrarian fields has anything in it, it overrides it's counterpart, and
the one in admin is not used.

The idea is that only the logged in superlibrarian can create an override, and
only under their own account.  They can't create an override for another
superlibrarian, and that override only works when that superlibrarian is logged
in.  It has no effect on other logged in users.  This gives a good, isolated
testing area for admin.

Perhaps for good measure, there should also be a permission under the
superlibrarian permission to enable/disable the overrides.  It would not
prevent access to the tab or override fields, but it would allow that
superlibrarian and other superlibrarians the ability to render it inactive, in
case, during testing, the override has some unexpected affect that keeps that
user from being able to undo the code.  It would also allow that superlibrarian
to turn on/off the code they are testing without having to clear the fields in
between testing.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list