Revision 984f6322
Von Bernd Bleßmann vor mehr als 5 Jahren hinzugefügt
t/menu/parse_access_string.t | ||
---|---|---|
54 | 54 |
$node{access} = '(no_such_right & sales_order_edit | (no_such_right & sales_order_edit))'; |
55 | 55 |
ok(!$menu->parse_access_string(\%node), 'parenthesis 2'); |
56 | 56 |
|
57 |
$node{access} = 'sales_quotation_edit & client/feature_experimental'; |
|
57 |
$node{access} = 'sales_quotation_edit & client/feature_experimental_order';
|
|
58 | 58 |
ok($menu->parse_access_string(\%node), 'client'); |
59 | 59 |
|
60 | 60 |
$node{access} = '!no_such_right'; |
... | ... | |
72 | 72 |
$node{access} = '(no_such_right & sales_order_edit | (!no_such_right | !sales_order_edit))'; |
73 | 73 |
ok($menu->parse_access_string(\%node), 'parenthesis with negation 2'); |
74 | 74 |
|
75 |
$node{access} = 'sales_quotation_edit & !client/feature_experimental'; |
|
75 |
$node{access} = 'sales_quotation_edit & !client/feature_experimental_order';
|
|
76 | 76 |
ok(!$menu->parse_access_string(\%node), 'client negation'); |
77 | 77 |
|
78 | 78 |
done_testing; |
Auch abrufbar als: Unified diff
Mandantenkonfiguration: experimentelle Features einzeln an-/abschaltbar machen
es gibt nun "feature_experimental_order" und "feature_experimental_assortment"
angepasster cherry pick von odyn: bc94c40f2f64e7b40fbd90c49dbf41f86688c32d