Skip to content

Commit 9246308

Browse files
committed
fix: Allow migration endpoint to be called by non-admins
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent d80f027 commit 9246308

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Controller/SettingsController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public function get(): JSONResponse {
4949
return new JSONResponse($this->service->getAll($this->getUID()));
5050
}
5151

52+
/**
53+
* @NoAdminRequired
54+
*/
5255
public function migrate(): JSONResponse {
5356
$this->service->delete($this->getUID(), 'editorHint');
5457
return new JSONResponse();

0 commit comments

Comments
 (0)