[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 Jan 14 08:40:44 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29523
--- Comment #40 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
-sub accessible {
+sub is_accessible_in_context {
my ($self) = @_;
- return $self->_get_objects_class->search_limited(
- {
- map { $_ => $self->$_ }
- $self->_result->result_source->primary_columns
- }
- )->count > 0
- ? 1
- : 0;
+ return 1;
}
This happens in the last patch (from another author). This mystifies matters.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list