Bug 11897: Use 'stockrotation' permission for the endpoint
[koha.git] / t / db_dependent / api / v1 / stockrotationstage.t
index c76e9b1..23da8eb 100644 (file)
@@ -139,7 +139,7 @@ subtest 'move() tests' => sub {
 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(