Skip to content

Commit

Permalink
Merge pull request #57 from LibreCodeCoop/backport/56/stable27
Browse files Browse the repository at this point in the history
[stable27] Catch NotPermittedException
  • Loading branch information
vitormattos authored Oct 30, 2023
2 parents d9bf79c + e19f71f commit 090cf7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Service/MenuSectionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use OCP\Files\IAppData;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\IEmojiHelper;
use OCP\IURLGenerator;
use OCP\IUserSession;
Expand Down Expand Up @@ -94,7 +95,7 @@ public function getList(): array {
$list[$key]['icon'] = $icon->getContent();
}
}
} catch (NotFoundException $e) {
} catch (NotFoundException | NotPermittedException $e) {
}
}
return $list;
Expand Down

0 comments on commit 090cf7b

Please sign in to comment.