mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-26 15:10:05 +00:00
* 🎉 Init * 🐛 Fix variable responsible for creator * 🐛 Fix variable responsible for creator --------- Co-authored-by: at91mm <mariusz.gorski@ing.com>
This commit is contained in:
parent
20bc238413
commit
b3ac8de405
@ -258,7 +258,10 @@ export const TaskTab = ({
|
||||
* @returns True if has access otherwise false
|
||||
*/
|
||||
const hasEditAccess =
|
||||
isAdminUser || isAssignee || isOwner || Boolean(isPartOfAssigneeTeam);
|
||||
isAdminUser ||
|
||||
isAssignee ||
|
||||
isOwner ||
|
||||
(Boolean(isPartOfAssigneeTeam) && !isCreator);
|
||||
|
||||
const onSave = (message: string) => {
|
||||
postFeed(message, taskThread?.id ?? '').catch(() => {
|
||||
@ -302,7 +305,8 @@ export const TaskTab = ({
|
||||
};
|
||||
|
||||
const approvalWorkflowActions = useMemo(() => {
|
||||
const hasApprovalAccess = isAssignee || Boolean(isPartOfAssigneeTeam);
|
||||
const hasApprovalAccess =
|
||||
isAssignee || (Boolean(isPartOfAssigneeTeam) && !isCreator);
|
||||
|
||||
return (
|
||||
<Space
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user