query => $query,
type => "intranet",
authnotrequired => 0,
- flagsrequired => { circulate => 1 },
+ flagsrequired => { circulate => "circulate_remaining_permissions" },
}
);
$err{errbadcode} = 1;
}
+ if ( $code eq "NotAllowed" ) {
+ warn $messages->{'NotAllowed'};
+ warn $branches->{ $messages->{'NotAllowed'} }->{'branchname'};
+ $err{errnotallowed} = 1;
+ my ( $tbr, $itemtype ) = split( /::/, $messages->{'NotAllowed'} );
+ $err{tbr} = $branches->{ $tbr }->{'branchname'};
+ $err{itemtype} = $itemtype;
+ }
+
if ( $code eq 'IsPermanent' ) {
$err{errispermanent} = 1;
$err{msg} = $branches->{ $messages->{'IsPermanent'} }->{'branchname'};