roles guard + docs + logo
This commit is contained in:
@@ -127,6 +127,10 @@
|
||||
$product_sku = trim($data['product_sku'] ?? '');
|
||||
$lot_number = trim($data['lot_number'] ?? '');
|
||||
|
||||
if (in_array($label_action, ['create', 'print', 'disable', 'enable'], true)) {
|
||||
require_role($user_role, ['owner', 'admin', 'staff']);
|
||||
}
|
||||
|
||||
if ($label_action === 'print') {
|
||||
$barcode = trim($data['barcode'] ?? '');
|
||||
if ($barcode === '') {
|
||||
|
||||
Reference in New Issue
Block a user