Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update create user checks (#10534)

boojack7ffa307081f4
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
index ff912a6438..7a95271a09 100644
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue
@@ -212,11 +212,17 @@ const isDevelopmentIAM = computed(() => actuatorStore.serverInfo?.iamGuard);
const isCreating = computed(() => !props.user);
const allowConfirm = computed(() => {
- if (isCreating.value) {
- return state.user.email && state.user.roles.length > 0;
- } else {
- return getUpdateMaskFromUsers(props.user!, state.user).length > 0;
+ if (!state.user.email || state.user.roles.length === 0) {
+ return false;
}
+ if (
+ !isCreating.value &&
+ getUpdateMaskFromUsers(props.user!, state.user).length == 0
+ ) {
+ return false;
+ }
+
+ return true;
});
const allowDeactivate = computed(() => {
diff --git a/frontend/src/components/v2/Model/DatabaseV1Name.vue b/frontend/src/components/v2/Model/DatabaseV1Name.vue
index 5285201035..4c4dcd7850 100644
--- a/frontend/src/components/v2/Model/DatabaseV1Name.vue
+++ b/frontend/src/components/v2/Model/DatabaseV1Name.vue
@@ -5,7 +5,7 @@
class="inline-flex items-center gap-x-1"
:class="[link && !plain && 'normal-link', link && 'hover:underline']"
>
- <span v-if="prefix" class="ml-1 text-gray-400">{{ prefix }}</span>
+ <span v-if="prefix" class="mr-1 text-gray-400">{{ prefix }}</span>
<span>{{ database.databaseName }}</span>
</component>
</template>