This patch makes the tests for 'authorized' session use the
'stockrotation' permission instead of 'superlibrarian'.
The path x-koha-permission is fixed accordingly.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
},
"x-koha-authorization": {
"permissions": {
- "borrowers": "1"
+ "stockrotation": "1"
}
}
}
sub create_user_and_session {
my $args = shift;
- my $flags = ( $args->{authorized} ) ? $args->{authorized} : 0;
+ my $flags = ( $args->{authorized} ) ? 2 ** 24 : 0; # stockrotation == 24
my $dbh = C4::Context->dbh;
my $user = $builder->build(