@posiwise/common-services 0.1.97 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1533,6 +1533,8 @@ class PermissionService {
|
|
|
1533
1533
|
if (typeof permission !== 'boolean') {
|
|
1534
1534
|
permission.split(' ').forEach(x => {
|
|
1535
1535
|
const raw = x.trim();
|
|
1536
|
+
if (!raw)
|
|
1537
|
+
return; // Skip empty tokens (e.g. from double spaces) - avoids malformed expr
|
|
1536
1538
|
if (['||', '&&', '(', ')'].includes(raw)) {
|
|
1537
1539
|
expr += ` ${raw} `;
|
|
1538
1540
|
}
|