fix: Return isPaused according to isAllowedToRunFlows method
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user