mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Only allow superuser to perform plugin actions
This commit is contained in:
@ -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[] = [];
|
||||
|
||||
|
Reference in New Issue
Block a user