Skip to content

Commit 235b21d

Browse files
authored
ensure appearance and branding still loads when user does not have permission to edit (#1741)
1 parent 3eaf69a commit 235b21d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/Setting/Admin/Controller/GetController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Config\Tags;
2323
use Pimcore\Bundle\StudioBackendBundle\Setting\Admin\Schema\Settings;
2424
use Pimcore\Bundle\StudioBackendBundle\Setting\Admin\Service\SettingsServiceInterface;
25-
use Pimcore\Bundle\StudioBackendBundle\Util\Constant\UserPermissions;
2625
use Symfony\Component\HttpFoundation\JsonResponse;
2726
use Symfony\Component\Routing\Attribute\Route;
28-
use Symfony\Component\Security\Http\Attribute\IsGranted;
2927
use Symfony\Component\Serializer\SerializerInterface;
3028

3129
/**
@@ -46,7 +44,6 @@ public function __construct(
4644
* @throws Exception
4745
*/
4846
#[Route(path: self::ROUTE, name: 'pimcore_studio_api_admin_settings', methods: ['GET'])]
49-
#[IsGranted(UserPermissions::SYSTEM_APPEARANCE_SETTINGS->value)]
5047
#[Get(
5148
path: self::PREFIX . self::ROUTE,
5249
operationId: 'admin_settings_get',

0 commit comments

Comments
 (0)