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

--- Comment #35 from David Gustafsson <glask...@gmail.com> ---
The previously posted version of this patch at least for me did not apply
cleanly. Rebased against current HEAD of master, and also slightly altered the
behavior of "GetMarcPermissionsAction". The previous behaviour struck me as odd
since a module with a higher specificity will always override modules with
lower, even for the case when a filter argument for a module with lower
specificity has an exact match. So for example, if we have a rule with filter
'source' => 'bulkmarcimport', and another for 'borrower' => '*', the later rule
will always have precedence, even when source is matching 'bulkmarcimport'. I
seems more flexible to have the option to override on a more specific filter
match. 

Generally I think this patch is great, and almost exactly what we need, but the
whole filter-system I think is in need of some revamping. It would be nice if
the modules where more like separate namespaces, so that one set of rules
(belonging to a certain module) was applied at once. Right now rules from
several modules might be mixed in, and field-specificity has precedence in
rules selection. The code could be simplified and optimized if rules where
grouped by module instead (and also easier to admin from a user perspective I
would believe, since rules precedence would be more obvious. But have made no
such changes in the current patch, as wanted to bring this up for discussion
before make any large breaking changes.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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