Fixed adding policy to role

This commit is contained in:
Damian Zabawa
2020-06-24 20:25:50 +02:00
committed by GitHub
parent caa98cfc82
commit fa60ec79f2

View File

@@ -440,5 +440,9 @@ class RoleManager extends RepositoryExecutor implements MigrationGeneratorInterf
}
$roleService->addPolicyByRoleDraft($roleDraft, $policyCreateStruct);
if (is_callable(array($roleService, 'publishRoleDraft'))) {
$roleService->publishRoleDraft($roleDraft);
}
}
}