Merge pull request #1053 from automatisch/is-paused

fix: Return isPaused according to isAllowedToRunFlows method
This commit is contained in:
Ömer Faruk Aydın
2023-04-11 17:43:26 +02:00
committed by GitHub

View File

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