Flow with "Or" statements

Nextcloud version : 28.0.9
Operating system and version : Linux 6.6.18 aarch64
Apache version : Apache 2.4.62 (Debian)
PHP version : 8.1.29

Is it possible to block access to a file using flag and if a user is not in group X, OR group Y, OR groupe Z ?

I see that the Flow app assume it’s all “and” (see image), I couldn’t find if this could be changed

Flow_and_or1

AFAIK this is currently not possible within the workflow engine. The current implementation just iterates over every check entry. If one check doesn’t succeed, the workflow event is skipped.

To implement this new feature, this code needs to be adjusted:

Maybe you can open a new feature request at Sign in to GitHub · GitHub

PS: as a possible workaround you could try to setup individual workflows per user instead of putting them all together in one workflow? In theory (if you define your checks correctly) only one workflow should trigger at a time.

Here is the info on Flow - Flow - Apps - App Store - Nextcloud
And here is the repo - https://github.com/cloud-py-api/flow/issues

Interesting to see it has moved from Nextcloud to cloud-py-api.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.