aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Controller/UserWorkflowsController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-11-02 12:22:42 +0100
committerJoas Schilling <coding@schilljs.com>2023-11-16 06:25:42 +0100
commitd8ffbed2c268dde5ef73a1a617bc3627946d835d (patch)
tree0fe93e8cd7763165d42247f29b5774e7d2c71d57 /apps/workflowengine/lib/Controller/UserWorkflowsController.php
parent50f8d6c1295f2847160d615343fae924a043bdf2 (diff)
downloadnextcloud-server-d8ffbed2c268dde5ef73a1a617bc3627946d835d.tar.gz
nextcloud-server-d8ffbed2c268dde5ef73a1a617bc3627946d835d.zip
fix(workflows): Finish password confirmation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine/lib/Controller/UserWorkflowsController.php')
-rw-r--r--apps/workflowengine/lib/Controller/UserWorkflowsController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Controller/UserWorkflowsController.php b/apps/workflowengine/lib/Controller/UserWorkflowsController.php
index dd2457dd9e8..02c52deb9c7 100644
--- a/apps/workflowengine/lib/Controller/UserWorkflowsController.php
+++ b/apps/workflowengine/lib/Controller/UserWorkflowsController.php
@@ -29,6 +29,7 @@ namespace OCA\WorkflowEngine\Controller;
use OCA\WorkflowEngine\Helper\ScopeContext;
use OCA\WorkflowEngine\Manager;
+use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCS\OCSBadRequestException;
use OCP\AppFramework\OCS\OCSForbiddenException;
@@ -84,6 +85,7 @@ class UserWorkflowsController extends AWorkflowController {
* @throws OCSBadRequestException
* @throws OCSForbiddenException
*/
+ #[PasswordConfirmationRequired]
public function create(string $class, string $name, array $checks, string $operation, string $entity, array $events): DataResponse {
return parent::create($class, $name, $checks, $operation, $entity, $events);
}
@@ -93,6 +95,7 @@ class UserWorkflowsController extends AWorkflowController {
* @throws OCSBadRequestException
* @throws OCSForbiddenException
*/
+ #[PasswordConfirmationRequired]
public function update(int $id, string $name, array $checks, string $operation, string $entity, array $events): DataResponse {
return parent::update($id, $name, $checks, $operation, $entity, $events);
}
@@ -101,6 +104,7 @@ class UserWorkflowsController extends AWorkflowController {
* @NoAdminRequired
* @throws OCSForbiddenException
*/
+ #[PasswordConfirmationRequired]
public function destroy(int $id): DataResponse {
return parent::destroy($id);
}