fix: Use soft deleted filter to get soft deleted user
This commit is contained in:
@@ -160,7 +160,7 @@ class Flow extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async isPaused() {
|
async isPaused() {
|
||||||
const user = await this.$relatedQuery('user');
|
const user = await this.$relatedQuery('user').withSoftDeleted();
|
||||||
const allowedToRunFlows = await user.isAllowedToRunFlows();
|
const allowedToRunFlows = await user.isAllowedToRunFlows();
|
||||||
return allowedToRunFlows ? false : true;
|
return allowedToRunFlows ? false : true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user