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

--- Comment #6 from David Cook <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to