Merge branch 'tests/fixes-2022-09-05' into 111_exports_suite

This commit is contained in:
2022-09-06 14:53:05 +02:00
164 changed files with 3838 additions and 4005 deletions

View File

@@ -41,9 +41,9 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
];
/**
* Give the ability to see statistics
* Give the ability to see all confidential courses.
*/
public const STATS = 'CHILL_PERSON_ACCOMPANYING_PERIOD_STATS';
public const CONFIDENTIAL_CRUD = 'CHILL_PERSON_ACCOMPANYING_PERIOD_CRUD_CONFIDENTIAL';
public const CREATE = 'CHILL_PERSON_ACCOMPANYING_PERIOD_CREATE';
@@ -88,6 +88,11 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
*/
public const SEE_DETAILS = 'CHILL_PERSON_ACCOMPANYING_PERIOD_SEE_DETAILS';
/**
* Give the ability to see statistics.
*/
public const STATS = 'CHILL_PERSON_ACCOMPANYING_PERIOD_STATS';
/**
* Right to toggle confidentiality.
*/
@@ -95,11 +100,6 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
public const TOGGLE_CONFIDENTIAL_ALL = 'CHILL_PERSON_ACCOMPANYING_PERIOD_TOGGLE_CONFIDENTIAL_ALL';
/**
* Give the ability to see all confidential courses.
*/
public const CONFIDENTIAL_CRUD = 'CHILL_PERSON_ACCOMPANYING_PERIOD_CRUD_CONFIDENTIAL';
/**
* Right to toggle urgency of parcours.
*/
@@ -218,7 +218,6 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
return $token->getUser() === $subject->getUser();
}
}
return $this->voterHelper->voteOnAttribute($attribute, $subject, $token);

View File

@@ -30,6 +30,8 @@ class HouseholdVoter extends Voter
*/
public const SHOW = self::SEE;
public const STATS = 'CHILL_PERSON_HOUSEHOLD_STATS';
private const ALL = [
self::EDIT, self::SEE,
];