mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 15:05:19 +00:00
Enhance impersonation functionality and user management
- Updated the ImpersonationBar component to fetch users dynamically and handle impersonation actions more efficiently. - Refactored the ProfileForm to set the allowImpersonation value directly, improving form handling. - Modified the DashboardLayout to conditionally render the ImpersonationBar based on user permissions and cloud settings. - Added a new role column to the user_temp table to support user role management. - Updated API routes to include checks for root access and improved user listing functionality.
This commit is contained in:
@@ -102,10 +102,7 @@ export const ProfileForm = () => {
|
||||
keepValues: true,
|
||||
},
|
||||
);
|
||||
|
||||
form.reset({
|
||||
allowImpersonation: data?.user?.allowImpersonation,
|
||||
});
|
||||
form.setValue("allowImpersonation", data?.user?.allowImpersonation);
|
||||
|
||||
if (data.user.email) {
|
||||
generateSHA256Hash(data.user.email).then((hash) => {
|
||||
|
||||
Reference in New Issue
Block a user