Add explicit fail condition for subuser node key in route permissions

- Ensure permissions pass only if an explicit subuser node key is granted.
- Prevent fallback to classic user permissions in this authentication branch.
This commit is contained in:
Jeppe Bundgaard
2026-02-12 14:28:36 +01:00
parent f2244f5d0d
commit 6375bc7f12
+4
View File
@@ -375,6 +375,10 @@ trait route_t
return true;
}
}
// IMPORTANT: When a subuser is authenticated and a subusers node key is defined
// the permission must ONLY pass if the explicit subuser node is granted.
// Do NOT fall back to classic user permissions in this branch.
return false;
}
$user = $auth->get_user();
if (!$user) {