Merge pull request #1786 from automatisch/flow-error-message

fix: Use soft deleted filter to get soft deleted user
This commit is contained in:
Ömer Faruk Aydın
2024-04-04 00:50:50 +02:00
committed by GitHub

View File

@@ -160,7 +160,7 @@ class Flow extends Base {
}
async isPaused() {
const user = await this.$relatedQuery('user');
const user = await this.$relatedQuery('user').withSoftDeleted();
const allowedToRunFlows = await user.isAllowedToRunFlows();
return allowedToRunFlows ? false : true;
}