[Koha-bugs] [Bug 26170] Create "system" patrons that cannot be (easily) deleted via the web UI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 1 02:03:34 CEST 2020


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

--- Comment #6 from David Cook <dcook at prosentient.com.au> ---
Bug 23634 provides similar logic to what will be needed here. But instead of
"$patron->is_superlibrarian && ! $user->is_superlibrarian", it'll be
"$patron->is_system_user && ! $user->is_superlibrarian".

Now I just need to decide how to denote a system user.

On Bug 23634, Martin mentions that we don't have role based access control
(RBAC) and that's true, but maybe that should change. Although RBAC can get
complicated. While you could calculate and cache the permissions for a logged
in user session, that could get more challenging for the $patron that isn't
logged in... 

I suppose maybe it wouldn't be too hard to do $patron->has_role('system'),
especially leveraging a L1 cache.

-- 
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