roles guard + docs + logo

This commit is contained in:
Thanakorn S
2026-05-06 16:37:20 +07:00
parent 797dee5d17
commit 2eb6a1a315
60 changed files with 496 additions and 105 deletions
+4
View File
@@ -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 === '') {