mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6260] [Feature]: Admin Panel #4249
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stiiluyyu on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6260
Is your feature request related to a problem?
Add the option to provide an admin panel with access levels lower than that of a super admin.
Describe the solution you'd like
You can draw inspiration from Whalpanel or HMPanel for this.
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Aug 19, 2026):
This is the same request as #4377 ("Multi-Admin Accounts with Basic Role Permissions"): additional panel accounts whose permissions are narrower than the single full-access admin. #5042 was closed against #4377 for the same reason. #4377 was closed as not planned on 2026-05-14, so demand tracking and discussion belong there.
What the code has today, for reference:
model.Userininternal/database/model/model.go(line 37) carries onlyId,Username,PasswordandLoginEpoch.POST /panel/api/setting/updateUser(internal/web/controller/setting.go, line 71) only changes the current user's username and password, and API authentication resolves the account throughGetFirstUser()(internal/web/service/panel/user.go, line 25).admin,monitorandnode-sync(internal/database/model/model.go, line 159), enforced byenforceTokenScopeininternal/web/controller/api.go. Amonitortoken is read-only and restricted to the status/metrics routes listed inmonitorScopeAllow(internal/web/controller/api.go, line 74). That covers a read-only dashboard or bot, but it is a REST credential, not a second panel login with a restricted UI.You indicated you would like to implement this yourself. Since role-based access control touches the user model, session handling and every mutating controller, and since #4377 was already declined, it is worth agreeing on the scope with the maintainer on #4377 before writing code.
Closing here as a duplicate of #4377. Please add your specifics there, in particular which capabilities a lower-level admin should keep and which it must not have.
This reply was generated automatically; a maintainer may follow up.