Only allow superuser to perform plugin actions

This commit is contained in:
Oliver Walters
2024-08-30 01:04:49 +00:00
parent d81718c399
commit ad13ccaff2

View File

@ -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[] = [];