Skip to content

Add admin button to main menu - #419

Open
crazifil wants to merge 2 commits into
CybertownRevival:masterfrom
crazifil:phil00-AdminMenu
Open

Add admin button to main menu#419
crazifil wants to merge 2 commits into
CybertownRevival:masterfrom
crazifil:phil00-AdminMenu

Conversation

@crazifil

Copy link
Copy Markdown

Summary

Adds an Admin button to the main CTR navigation menu for users who have access to the existing Admin Panel.
(as i was getting sick of having to edit the address bar lol)

Changes
Adds an Admin button to the main navigation panel.
Only displays the button when the logged-in user has an existing Admin Panel access level.
Uses the existing /member/getadminlevel access control rather than introducing new permission logic.
Displays the Admin text in red to distinguish it from the standard navigation buttons.
Opens the existing Admin Panel in a separate window, allowing the main CTR session to remain open.
Testing
Confirmed the Admin button displays for an authorised user.
Confirmed the Admin Panel opens successfully in a separate window.
Confirmed the main CTR window remains open.
git diff --check completed without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant