[Bug 14708] The patron set as the anonymous patron should not be deletable
2 Nov
2020
2 Nov
'20
2:13 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14708 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Passed QA --- Comment #35 from Kyle M Hall <kyle@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #32)
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?
Here you go! -- You are receiving this mail because: You are watching all bug changes.
2080
Age (days ago)
2080
Last active (days ago)
0 comments
1 participants
participants (1)
-
bugzilla-daemon@bugs.koha-community.org