diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-11-27 15:59:34 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-11-28 15:51:16 +0300 |
commit | 7210852f075085ab2d678f9554125dedc7e3a310 (patch) | |
tree | eda518853a0a3c9cbcc0919f8e4cc1991e384bbf /lib/public/WorkflowEngine/IEntity.php | |
parent | 6b97f6af48ba8dc029e616cf778a1cbcd0fea001 (diff) |
allow user flows when the acting user is legitimate, but not its owner
for instance, when a sharee changes a file, the owner can act upon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/WorkflowEngine/IEntity.php')
-rw-r--r-- | lib/public/WorkflowEngine/IEntity.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IEntity.php b/lib/public/WorkflowEngine/IEntity.php index b8205600498..47e2f102199 100644 --- a/lib/public/WorkflowEngine/IEntity.php +++ b/lib/public/WorkflowEngine/IEntity.php @@ -74,4 +74,12 @@ interface IEntity { */ public function prepareRuleMatcher(IRuleMatcher $ruleMatcher, string $eventName, Event $event): void; + /** + * returns whether the provided user id is allowed to run a flow against + * the known context + * + * @since 18.0.0 + */ + public function isLegitimatedForUserId(string $userId): bool; + } |