Skip to content

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

Update based on feedback

Joshen Lim1ec964a607ce
diff --git a/studio/components/interfaces/Database/Roles/RoleRow.tsx b/studio/components/interfaces/Database/Roles/RoleRow.tsx
index 93bfc33adcf..d8fcecb0c93 100644
--- a/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -171,7 +171,7 @@ const RoleRow: FC<Props> = ({ role, disabled = false, onSelectDelete }) => {
disabled={disabled || ROLE_PERMISSIONS[permission].disabled}
className={[
'roles-toggle',
- ROLE_PERMISSIONS[permission].disabled ? 'opacity-50' : '',
+ disabled || ROLE_PERMISSIONS[permission].disabled ? 'opacity-50' : '',
].join(' ')}
afterLabel={
!disabled &&
diff --git a/studio/components/interfaces/Database/Roles/Roles.constants.ts b/studio/components/interfaces/Database/Roles/Roles.constants.ts
index 9a558bfb4e8..7e9bcbc3c28 100644
--- a/studio/components/interfaces/Database/Roles/Roles.constants.ts
+++ b/studio/components/interfaces/Database/Roles/Roles.constants.ts
@@ -29,7 +29,7 @@ export const ROLE_PERMISSIONS: any = {
description: 'User can create databases',
},
can_bypass_rls: {
- disabled: false,
+ disabled: true,
description: 'User bypasses every row level security policy',
},
is_superuser: {
diff --git a/studio/components/interfaces/Database/Roles/RolesList.tsx b/studio/components/interfaces/Database/Roles/RolesList.tsx
index 51da8ed3911..956fb1af750 100644
--- a/studio/components/interfaces/Database/Roles/RolesList.tsx
+++ b/studio/components/interfaces/Database/Roles/RolesList.tsx
@@ -163,7 +163,7 @@ const RolesList: FC<Props> = ({}) => {
<div>
{supabaseRoles.length > 0 && (
<div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t flex items-center space-x-4">
- <p className="text-sm text-scale-1100">Roles from Supabase</p>
+ <p className="text-sm text-scale-1100">Roles managed by Supabase</p>
<Badge color="green">Protected</Badge>
</div>
)}