This commit is contained in:
Dan 2023-03-13 11:53:42 -04:00
parent ce3ce4fb45
commit 75910bcb8d
2 changed files with 20 additions and 14 deletions

View File

@ -52,6 +52,13 @@ permissions:
allowed_permissions: [create, read, update, delete]
uri: /tasks/*
# Everybody can start all intstances
create-test-instances:
groups: [ everybody ]
users: [ ]
allowed_permissions: [ create ]
uri: /process-instances/*
# Everyone can see everything (all groups, and processes are visible)
read-all-process-groups:
groups: [ everybody ]

View File

@ -178,8 +178,9 @@ export default function ProcessInstanceListTable({
useState<string[]>([]);
const [processInitiatorSelection, setProcessInitiatorSelection] =
useState<User | null>(null);
const [processInitiatorText, setProcessInitiatorText] =
useState<string | null>(null);
const [processInitiatorText, setProcessInitiatorText] = useState<
string | null
>(null);
const lastRequestedInitatorSearchTerm = useRef<string>();
@ -608,7 +609,6 @@ export default function ProcessInstanceListTable({
queryParamString += `&process_initiator_username=${processInitiatorText}`;
}
const reportColumnsBase64 = encodeBase64(JSON.stringify(reportColumns()));
queryParamString += `&report_columns=${reportColumnsBase64}`;
const reportFilterByBase64 = encodeBase64(JSON.stringify(reportFilterBy()));
@ -1122,18 +1122,17 @@ export default function ProcessInstanceListTable({
selectedItem={processInitiatorSelection}
/>
);
} else {
return (
<TextInput
id="process-instance-initiator-search"
placeholder="Enter username"
labelText="Process Initiator"
onChange={(event: any) =>
setProcessInitiatorText(event.target.value)
}
/>
);
}
return (
<TextInput
id="process-instance-initiator-search"
placeholder="Enter username"
labelText="Process Initiator"
onChange={(event: any) =>
setProcessInitiatorText(event.target.value)
}
/>
);
}}
</Can>
</Column>