[Koha-bugs] [Bug 28999] Add Koha::AllowList, DenyList and Koha::Object::ColumnSet
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 13 08:27:01 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28999
--- Comment #6 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
The code for AllowList is generic now. But we need the ColumnSet to apply it to
Koha objects in various ways.
This is the idea:
Say $city is a Koha object.
$city->filter('opac_ui') returns city data through the opac_ui filter which is
just a set of columns for some purpose.
$city->filter('staff') could return some other subset or even nothing when the
set does not exist.
The sub filter calls Koha::Object::ColumnSet with the requested column set
name. The module calls the corresponding DBIx schema where we add a sub called
column_set_info containing the lists we need like a list for opac_ui.
ColumnSet runs a Koha::AllowList based on that list over the object data.
Hang on a little bit. Submitting some concept code shortly.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list