feat(users): implement ChangeRole component for user role management in dashboard

This commit is contained in:
Mauricio Siu
2025-12-07 02:32:41 -06:00
parent a9ae39dc94
commit 568293ef3c
4 changed files with 242 additions and 3 deletions
+5 -1
View File
@@ -316,7 +316,11 @@ const MENU: Menu = {
url: "/dashboard/settings/ssh-keys",
// Only enabled for admins and users with access to SSH keys
isEnabled: ({ auth }) =>
!!(auth?.role === "owner" || auth?.canAccessToSSHKeys),
!!(
auth?.role === "owner" ||
auth?.canAccessToSSHKeys ||
auth?.role === "admin"
),
},
{
title: "AI",