Lines 253-263
sub create_user_and_session {
Link Here
|
253 |
$session->param( 'lasttime', time() ); |
253 |
$session->param( 'lasttime', time() ); |
254 |
$session->flush; |
254 |
$session->flush; |
255 |
|
255 |
|
256 |
if ( $args->{permissions} ne 'authorized_restricted' ) { |
256 |
# Allow circulation rules management for librarian's home library, but not |
|
|
257 |
# other libraries |
258 |
if ( $args->{permissions} eq 'authorized_restricted' ) { |
257 |
$dbh->do( |
259 |
$dbh->do( |
258 |
q{ |
260 |
q{ |
259 |
INSERT INTO user_permissions (borrowernumber,module_bit,code) |
261 |
INSERT INTO user_permissions (borrowernumber,module_bit,code) |
260 |
VALUES (?,3,'manage_circ_rules_from_any_libraries'), (?,3,'manage_circ_rules')}, |
262 |
VALUES (?,3,'manage_circ_rules')}, |
261 |
undef, $user->{borrowernumber}, $user->{borrowernumber} |
263 |
undef, $user->{borrowernumber}, $user->{borrowernumber} |
262 |
); |
264 |
); |
263 |
} |
265 |
} |
264 |
- |
|
|