fix(dispute): drive order to pending_review on dispute resolution
This commit is contained in:
@@ -78,7 +78,7 @@ function isAutoAction(action: OrderAction): boolean {
|
||||
}
|
||||
|
||||
function checkRolePermission(action: OrderAction, actor?: Actor | null): PolicyDecision {
|
||||
if (isAutoAction(action)) {
|
||||
if (isAutoAction(action) || (action === "RESOLVE_DISPUTE" && !actor?.userId)) {
|
||||
return allow()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user