mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Apply batched suggestions from code review
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
7949dc665b
commit
d8b485f020
3 files changed
+6
-5
No files matched your search
@@ -177,7 +177,7 @@ export const LogTable = ({
|
||||
|
||||
const { can: canCreateLogQuery } = useAsyncCheckUserContentPermissions(
|
||||
FGA_PERMISSIONS.PROJECT.SNIPPETS_WRITE,
|
||||
{ mode: 'create', type: 'report' }
|
||||
{ mode: 'create', type: 'log_sql' }
|
||||
)
|
||||
|
||||
const firstRow = data[0]
|
||||
|
||||
@@ -90,7 +90,7 @@ function useGetProjectPermissionsV2(
|
||||
enabled: getProjectDataFromParamsRef,
|
||||
})
|
||||
const project =
|
||||
projectRefOverride === undefined || projectData?.parent_project_ref
|
||||
projectRefOverride === undefined
|
||||
? projectData
|
||||
: { ref: projectRefOverride, parent_project_ref: undefined }
|
||||
|
||||
|
||||
@@ -77,9 +77,10 @@ const RedirectToTemplates = () => {
|
||||
FGA_PERMISSIONS.PROJECT.AUTH_CONFIG_READ
|
||||
)
|
||||
|
||||
const { can: canUpdateConfig } = useAsyncCheckPermissionsV2(
|
||||
FGA_PERMISSIONS.PROJECT.AUTH_CONFIG_WRITE
|
||||
)
|
||||
const { can: canUpdateConfig } = useAsyncCheckPermissionsV2([
|
||||
FGA_PERMISSIONS.PROJECT.AUTH_CONFIG_WRITE,
|
||||
FGA_PERMISSIONS.PROJECT.ADMIN_WRITE,
|
||||
])
|
||||
|
||||
const { data: authConfig, isPending: isLoadingConfig } = useAuthConfigQuery({ projectRef })
|
||||
const { data: selectedOrganization } = useSelectedOrganizationQuery()
|
||||
|
||||
Reference in new issue
Block a user