mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 14:13:06 +00:00
Fix failing tests in Task Resolution (#15634)
This commit is contained in:
parent
b304cbf55f
commit
a6deffdd7c
@ -805,7 +805,9 @@ public class FeedRepository {
|
|||||||
// Allow if user created the task to close task (and not resolve task)
|
// Allow if user created the task to close task (and not resolve task)
|
||||||
EntityReference owner = Entity.getOwner(aboutRef);
|
EntityReference owner = Entity.getOwner(aboutRef);
|
||||||
List<EntityReference> assignees = thread.getTask().getAssignees();
|
List<EntityReference> assignees = thread.getTask().getAssignees();
|
||||||
if (owner.getName().equals(userName) || closeTask && thread.getCreatedBy().equals(userName)) {
|
if (owner != null
|
||||||
|
&& (owner.getName().equals(userName)
|
||||||
|
|| closeTask && thread.getCreatedBy().equals(userName))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user