diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 7380afe763..39c6536997 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -63,6 +63,11 @@ unless ( C4::Context->preference('PatronSelfRegistration') || $borrowernumber ) } my $action = $cgi->param('action') || q{}; +if ( $borrowernumber && ( $action eq 'create' || $action eq 'new' ) ) { + print $cgi->redirect("/cgi-bin/koha/opac-main.pl"); + exit; +} + if ( $action eq q{} ) { if ($borrowernumber) { $action = 'edit';