fix: correct node administrator permissions#13016
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7452675116
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const res = await listNodeOptions(type); | ||
| return res.data || []; |
There was a problem hiding this comment.
Preserve per-user node filtering
For enterprise non-admin users, this now calls the all-node /core/nodes/list endpoint instead of the previous /core/enterprise/users/nodes path, so the sidebar/node selectors that consume listNodes('all') can be populated with nodes outside the user's assigned node roles. In particular, Collapse.vue trusts this list when switching nodes, so a node admin with access to only one node can be shown and attempt to switch to every healthy bound node returned by the all-node API; keep using the user-scoped endpoint for non-admins or ensure this wrapper remains user-scoped.
Useful? React with 👍 / 👎.
No description provided.