Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Display message when user not admin #5884

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

lcampbell2
Copy link
Collaborator

@lcampbell2 lcampbell2 commented Nov 13, 2024

Display a message for non-admins on the admin profile page to redirect them for affiliation.

image

closes #3189

@lcampbell2 lcampbell2 changed the title Bugfix/display message when user not admin Bugfix: Display message when user not admin Nov 13, 2024
@@ -116,6 +116,32 @@ export default function AdminPage() {
)
}

if (data?.isUserAdmin) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This displays the message if the user is an admin

@lcampbell2 lcampbell2 merged commit 303c80d into master Nov 14, 2024
31 checks passed
@lcampbell2 lcampbell2 deleted the bugfix/display-message-when-user-not-admin branch November 14, 2024 17:34
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.

Admin page shows organization dropdown when user is not admin of any orgs
2 participants