diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-05 15:52:11 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:04 +0200 |
commit | c2a52813e2cfadc43b096927ee9d9db3d9ac5c84 (patch) | |
tree | fffa2234b146bd5fbda576ad1a73b7b01575de4f /apps/workflowengine/lib/Check/RequestUserAgent.php | |
parent | d2c8b939d58239a99163445b83d80873932a5514 (diff) | |
download | nextcloud-server-c2a52813e2cfadc43b096927ee9d9db3d9ac5c84.tar.gz nextcloud-server-c2a52813e2cfadc43b096927ee9d9db3d9ac5c84.zip |
extends ICheck with scope and entity support, provide them as initialState
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib/Check/RequestUserAgent.php')
-rw-r--r-- | apps/workflowengine/lib/Check/RequestUserAgent.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Check/RequestUserAgent.php b/apps/workflowengine/lib/Check/RequestUserAgent.php index 4191a2f3412..2b2e3015557 100644 --- a/apps/workflowengine/lib/Check/RequestUserAgent.php +++ b/apps/workflowengine/lib/Check/RequestUserAgent.php @@ -79,4 +79,8 @@ class RequestUserAgent extends AbstractStringCheck { protected function getActualValue() { return (string) $this->request->getHeader('User-Agent'); } + + public function isAvailableForScope(int $scope): bool { + return true; + } } |