From ad13ccaff2fd80e1bc2520005848cc62955ebe7e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 30 Aug 2024 01:04:49 +0000 Subject: [PATCH] Only allow superuser to perform plugin actions --- src/frontend/src/tables/plugin/PluginListTable.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/tables/plugin/PluginListTable.tsx b/src/frontend/src/tables/plugin/PluginListTable.tsx index 98f5aaf730..0e334488d1 100644 --- a/src/frontend/src/tables/plugin/PluginListTable.tsx +++ b/src/frontend/src/tables/plugin/PluginListTable.tsx @@ -352,7 +352,10 @@ export default function PluginListTable() { // Determine available actions for a given plugin const rowActions = useCallback( (record: any): RowAction[] => { - // TODO: Plugin actions should be updated based on on the users's permissions + // Only superuser can perform plugin actions + if (!user.isSuperuser()) { + return []; + } let actions: RowAction[] = [];