Skip to content

Commit

Permalink
Merge pull request #56 from LibreCodeCoop/bugfix/not-permitted-exception
Browse files Browse the repository at this point in the history
Catch NotPermittedException
  • Loading branch information
vitormattos authored Oct 30, 2023
2 parents 5fe147c + 858f4de commit f2425e9
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 f2425e9

Please sign in to comment.