Lines 42-48
subtest 'normal staff user test' => sub {
Link Here
|
42 |
'plugins' => 0, |
42 |
'plugins' => 0, |
43 |
'problem_reports' => 0, |
43 |
'problem_reports' => 0, |
44 |
'recalls' => 0, |
44 |
'recalls' => 0, |
45 |
'reports' => 0, |
45 |
'reports' => 1, |
46 |
'reserveforothers' => 0, |
46 |
'reserveforothers' => 0, |
47 |
'self_check' => 0, |
47 |
'self_check' => 0, |
48 |
'serials' => 0, |
48 |
'serials' => 0, |
Lines 58-63
subtest 'normal staff user test' => sub {
Link Here
|
58 |
'CAN_user_staffaccess' => 1, |
58 |
'CAN_user_staffaccess' => 1, |
59 |
'CAN_user_circulate' => 1, |
59 |
'CAN_user_circulate' => 1, |
60 |
'CAN_user_circulate_circulate_remaining_permissions' => 1, |
60 |
'CAN_user_circulate_circulate_remaining_permissions' => 1, |
|
|
61 |
'CAN_user_reports' => 1, |
62 |
'CAN_user_reports_create_reports' => 1, |
63 |
'CAN_user_reports_delete_reports' => 1, |
64 |
'CAN_user_reports_execute_reports' => 1, |
61 |
}; |
65 |
}; |
62 |
is_deeply( $authz, $expected, 'Expected permissions generated for normal staff user' ); |
66 |
is_deeply( $authz, $expected, 'Expected permissions generated for normal staff user' ); |
63 |
}; |
67 |
}; |
64 |
- |
|
|