]> git.koha-community.org Git - koha.git/commit
Bug 29523: Add Koha::Object->accessible
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Nov 2021 12:55:15 +0000 (09:55 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Oct 2023 19:40:41 +0000 (16:40 -0300)
commitc24b46b403b51162d582b856d79914509661d26a
treeafd645bd26be030c23094be4392dc9d91a6415fd
parentd822e687d28ae8d5c5451cf0e09937d60967dd3c
Bug 29523: Add Koha::Object->accessible

This patch introduces a method for checking if an object can be
retrieved by the current user. It depends on the plural class
implementation of the ->search_limited method.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Object.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Object.pm
t/db_dependent/Koha/Object.t