Fixes #4735 -- Allow null result on super admin role check.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-10-27 10:37:15 -05:00
parent be46e08dc4
commit 3c8e7c4cc1
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class RolePermissionRepository extends Repository
DQL
)->setParameter('action', Acl::GLOBAL_ALL)
->setMaxResults(1)
->getSingleResult();
->getOneOrNullResult();
if ($superAdminRole instanceof Entity\Role) {
return $superAdminRole;