Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Allow org members to access db password feature on dashboard

Joshen Lim9a68af2effee
diff --git a/studio/pages/project/[ref]/settings/database.tsx b/studio/pages/project/[ref]/settings/database.tsx
index fc8f8a0d39b..009761a2ab1 100644
--- a/studio/pages/project/[ref]/settings/database.tsx
+++ b/studio/pages/project/[ref]/settings/database.tsx
@@ -188,6 +188,7 @@ const ResetDbPassword: FC<any> = () => {
} else {
ui.setNotification({ category: 'error', message: 'Failed to reset password' })
}
+ setIsUpdatingPassword(false)
}
}
@@ -279,9 +280,6 @@ const DownloadCertificate: FC<any> = ({ createdAt }) => {
}
const GeneralSettings: FC<any> = ({ projectRef }) => {
- const { ui } = useStore()
- const isOwner = ui.selectedOrganization?.is_owner
-
const { data, error }: any = useSWR(`${API_URL}/props/project/${projectRef}/settings`, get)
if (data?.error || error) {
@@ -378,7 +376,7 @@ const GeneralSettings: FC<any> = ({ projectRef }) => {
</Panel.Content>
</Panel>
</section>
- {isOwner && <ResetDbPassword />}
+ <ResetDbPassword />
<DownloadCertificate createdAt={connectionInfo.inserted_at} />
</div>
<div>