[Koha-bugs] [Bug 29523] Add a way to prevent embedding objects that should not be allowed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 20 10:23:30 CEST 2023


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

--- Comment #152 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Just a few dumb questions:

Name unredact_list Where does this name originate from ?


+        $patron_11_1 = Koha::Patrons->find( $patron_11_1->borrowernumber );
Added a few times. This seems not needed?  Why do you add it?


t/db_dependent/Koha/REST/Plugin/Objects.t 
-      $builder->build_object( { class => 'Koha::Patrons', value => { flags =>
1 } } );
+      $builder->build_object( { class => 'Koha::Patrons', value => { flags =>
0 } } );
=> If I set the user to no permissions, the test still PASSes. Can you point me
to an example in the tests where we can actually see the difference, i.e. where
flags makes a difference?

How do we make sure that we did not forget some calls of patron->to_api with
user parameter ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list