mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
cs: Enable a couple of risky rules.
This commit is contained in:
@@ -63,7 +63,7 @@ class FamilyMemberVoter extends AbstractChillVoter implements ProvideRoleHierarc
|
||||
protected function supports($attribute, $subject)
|
||||
{
|
||||
return (in_array($attribute, self::ROLES) && $subject instanceof FamilyMember)
|
||||
or ($subject instanceof Person && in_array($attribute, [self::SHOW, self::CREATE]));
|
||||
|| ($subject instanceof Person && in_array($attribute, [self::SHOW, self::CREATE]));
|
||||
}
|
||||
|
||||
protected function voteOnAttribute($attribute, $subject, \Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token)
|
||||
|
Reference in New Issue
Block a user