[Koha-bugs] [Bug 14708] The patron set as the anonymous patron should not be deletable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Oct 25 23:34:54 CET 2020


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

--- Comment #32 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
 sub delete {
     my ($self) = @_;

+    my $anonymous_patron = C4::Context->preference("AnonymousPatron");
+    return $self if $anonymous_patron && $self->id eq $anonymous_patron;


Shouldn't we raise an exception instead?

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


More information about the Koha-bugs mailing list