This commit is contained in:
sudomarcma
2025-09-08 14:41:38 +08:00
parent 91299792e5
commit 64b4f040ee
+1 -1
View File
@@ -46,7 +46,7 @@ export default function(db) {
// Check if worker has device_uuid (Android device)
if (user.role === 'worker') {
const [deviceRows] = await db.execute('SELECT device_uuid FROM workers WHERE id = ?', [user.id]);
if (deviceRows[0].device_uuid) {
if (deviceRows[0].device_uuid&&deviceRows[0].device_uuid.length){
return res.status(403).json({ message: 'useMobileApp' });
}
}