person document: fix use of deprecated role class

This commit is contained in:
2021-12-17 00:33:02 +01:00
parent 773aee5534
commit 36890a2256
4 changed files with 10 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ class ScopePickerType extends AbstractType
{
$items = $this->authorizationHelper->getReachableScopes(
$this->security->getUser(),
$options['role']->getRole(),
$options['role'] instanceof Role ? $options['role']->getRole() : $options['role'],
$options['center']
);