Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(settings): Add back adminstration scope for LogSettingsController
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Jan 25, 2025
commit e473a26676769380e170b9cadeedacdc58944b59
2 changes: 2 additions & 0 deletions apps/settings/lib/Controller/LogSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\StreamResponse;
use OCP\IRequest;

Expand All @@ -32,6 +33,7 @@ public function __construct(string $appName, IRequest $request, Log $logger) {
* 200: Logfile returned
*/
#[NoCSRFRequired]
#[OpenAPI(scope: OpenAPI::SCOPE_ADMINISTRATION)]
public function download() {
if (!$this->log instanceof Log) {
throw new \UnexpectedValueException('Log file not available');
Expand Down
Loading