fix: Use soft deleted filter to get soft deleted user

This commit is contained in:
Faruk AYDIN
2024-04-03 19:10:40 +02:00
parent 8ba95381bc
commit 583f90d1e9

View File

@@ -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;
} }