fix: Return isPaused according to isAllowedToRunFlows method

This commit is contained in:
Faruk AYDIN
2023-04-11 17:11:38 +02:00
parent 9cb4607f69
commit 51ac37f1de

View File

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