mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix(studio): prevent users not permitted or on protected schemas to edit triggers (#41312)
* fix: disable edit trigger button without permission and in protected schemas * modify edit trigger button disabled style
This commit is contained in:
1 parent
5dfe76b52d
commit
78fd7350f9
1 file changed
+2
-1
@@ -99,9 +99,10 @@ export const TriggerList = ({
|
||||
<TableCell className="space-x-2">
|
||||
<Button
|
||||
type="text"
|
||||
disabled={isLocked || !canUpdateTriggers}
|
||||
onClick={() => editTrigger(x)}
|
||||
title={x.name}
|
||||
className="text-link-table-cell text-left text-sm min-w-0 p-0 hover:bg-transparent font-medium max-w-48 title"
|
||||
className="text-link-table-cell text-left text-sm disabled:opacity-90 disabled:no-underline min-w-0 p-0 hover:bg-transparent font-medium max-w-48 title"
|
||||
>
|
||||
{x.name}
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user