Koha-clms/Koha/Patron
Tomas Cohen Arazi 8d2d63f7ae
Bug 31333: (QA follow-up) Simplify code
The new syspref is a deny-list. So not being part of the list means you
are allowed. This was not that clear reading the code, so this patch
tries to simplify the logic. Better handling on undef syspref value is
added as well to avoid useless warnings.

This patch does the following changes:
- Uses `any` instead of `grep`. This has the effect of just returning a
  boolean on the first match, instead of keep looping until de array

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-05 16:01:06 -03:00
..
Attribute
…
Password Bug 30611: (follow-up) Use constants 2022-05-10 15:17:17 -10:00
Restriction Bug 23681: Move to ::Patron::Restriction::Type(s) 2022-08-25 08:50:35 -03:00
Attribute.pm
…
Attributes.pm Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
Categories.pm
…
Category.pm Bug 31333: (QA follow-up) Simplify code 2022-10-05 16:01:06 -03:00
Consent.pm
…
Consents.pm
…
Debarments.pm
…
Discharge.pm
…
Files.pm
…
HouseboundProfile.pm Bug 29847: Make Koha::Patron::HouseboundProfile->housebound_visits return a resultset 2022-02-09 15:36:23 -10:00
HouseboundProfiles.pm
…
HouseboundRole.pm
…
HouseboundRoles.pm
…
HouseboundVisit.pm
…
HouseboundVisits.pm
…
Image.pm
…
Images.pm
…
Message.pm
…
Messages.pm
…
Modification.pm Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
Modifications.pm
…
Relationship.pm
…
Relationships.pm Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00