diff --git a/Services/WikiService.php b/Services/WikiService.php index 21f2ba1..7f9d020 100644 --- a/Services/WikiService.php +++ b/Services/WikiService.php @@ -204,15 +204,6 @@ public function getWikiPermission(Wiki $wiki) $wikiRoles = ['readRole' => false, 'writeRole' => false]; $flag = false; - // https://symfony.com/doc/current/security.html#allowing-unsecured-access-i-e-anonymous-users - // unauthenticated/visitor user assign role. - if ($this->authorizationChecker->isGranted('PUBLIC_ACCESS')) { - $wikiRoles['readRole'] = true; - $wikiRoles['writeRole'] = true; - - return $wikiRoles; - } - if ($this->authorizationChecker->isGranted('ROLE_SUPERUSER')) { $wikiRoles['readRole'] = true; $wikiRoles['writeRole'] = true;