dddb6d66bc
php cs fixes after merge
2024-05-22 16:44:02 +02:00
9ce1788a14
phpstan en rector fixes
2024-05-22 16:42:47 +02:00
ed3e0f889e
Rector changes + namespace changes
2024-04-23 17:43:23 +02:00
f889d67e94
fixes after merge of master into upgrade-sf4
2024-02-12 22:31:16 +01:00
036fe8d6f8
upgrade php-cs 3.49
2024-02-07 10:43:53 +01:00
27ce322690
upgrade php-cs-fixer to 3.47.0
2024-01-22 12:14:39 +01:00
3c8e59e088
php cs fixes after updating php cs fixer
2024-01-10 10:31:25 +01:00
bc2041cbdd
apply more cs rules for php-cs
2023-10-17 13:27:03 +02:00
6b8d6b76ba
Upgrade code from 146 to new standards
2023-10-16 18:04:40 +02:00
d3b68f8f8f
AuthorizationHelper: compare center and scope based on id, not on equality
...
For an unknown reason, in some circumstances, the use of the `===` comparator does not work when comparing Center instances and Scope instances. Then, we compare them based on the id.
2023-09-13 10:08:44 +02:00
d2323e91ca
new cs rule: single_line_empty_body
...
Rule is added to the last version of php-cs-fixer
2023-09-12 15:58:59 +02:00
e72df84442
DX: rector corrections
2023-09-01 11:08:13 +02:00
7c58880139
Remove usage of deprecated Role class
2023-08-31 17:08:18 +02:00
023a29cb78
apply rector rules: php up to php82
2023-07-19 23:19:50 +02:00
224c2c74e8
Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php80
...
Conflicts:
src/Bundle/ChillActivityBundle/Controller/ActivityController.php
src/Bundle/ChillActivityBundle/Export/Aggregator/ACPAggregators/DateAggregator.php
src/Bundle/ChillActivityBundle/Menu/PersonMenuBuilder.php
src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php
src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php
src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php
src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSGraphUserRepository.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php
src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepository.php
src/Bundle/ChillEventBundle/Search/EventSearch.php
src/Bundle/ChillMainBundle/Controller/ExportController.php
src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
src/Bundle/ChillMainBundle/Cron/CronManager.php
src/Bundle/ChillMainBundle/Entity/CronJobExecution.php
src/Bundle/ChillMainBundle/Export/ExportManager.php
src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
src/Bundle/ChillMainBundle/Repository/NotificationRepository.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperFactory.php
src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/AgeAggregator.php
src/Bundle/ChillPersonBundle/Export/Export/ListAccompanyingPeriod.php
src/Bundle/ChillPersonBundle/Export/Export/ListHouseholdInPeriod.php
src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php
src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php
src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php
src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php
2023-07-17 12:49:13 +02:00
dd344aed52
Implements right "see confidential course" on method findByPerson
...
Add unit tests for that
2023-07-04 15:59:39 +02:00
c35994203d
fix phpstan issues
2023-04-28 22:55:01 +02:00
dde3002100
DX: apply rector rules up to php8.0
2023-04-28 22:30:33 +02:00
9918cf2d58
Fix: authorization helper won't send a list of center if an admin is authenticated
2023-04-24 15:50:27 +02:00
4db1ff405e
fix new phpstan issues
2023-04-11 13:04:08 +02:00
841bdb0ebf
fix issues from master
2023-04-11 11:43:01 +02:00
ef13833966
Fixed: [create person] handle case when the user has two differents groups in the same center
...
Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/72
2023-04-11 10:16:09 +02:00
386d1e44d0
Fixed: [accompanying course document] fix access to accompanying course document
...
The entity AccompanyingCourseDocument didn't had any center associated with this entity. Implementing the interface `HasCenterInterface` fixed the problem.
Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/83
2023-04-05 19:29:33 +02:00
74673380aa
Fixed: [calendar] refactor ACL on calendar
2022-11-28 12:22:58 +01:00
6b5f746efc
Remove deprecation of AuthorizationHelper::getReachableScope
, as it is
...
widely used
2022-10-08 00:23:07 +02:00
49731777b4
fix cs: declare type and license header mismatch
2022-10-06 20:51:44 +02:00
63137c67f4
fix cs
2022-10-05 16:55:13 +02:00
Pol Dellaiera
8401ce2656
cs: Fix code-style (using PHPCSFixer and PHPCS).
2021-12-21 10:59:23 +01:00
Pol Dellaiera
47c5855a21
cs: Switch to a stricter way of coding - this might break in a lot of places.
2021-11-30 13:33:18 +01:00
Pol Dellaiera
a9188355c5
cs: Enable more risky rules.
2021-11-30 11:37:57 +01:00
Pol Dellaiera
8f96a1121d
cs: Fix code style (safe rules only).
2021-11-23 14:08:50 +01:00
Pol Dellaiera
70ed9e75db
tests: Fix "...Class "Chill\MainBundle\Security\Resolver\CenterResolverDispatcher" is declared "final" and cannot be mocked....".
2021-11-23 12:41:09 +01:00
Pol Dellaiera
8ede116cf5
fix: SA: Split critical issues in its own file.
...
SA stands for Static Analysis.
2021-11-16 14:06:24 +01:00
Pol Dellaiera
c68bda5c9b
fix: SA: Fix "...invoked with..." rule.
...
SA stands for Static Analysis.
2021-11-16 12:16:02 +01:00
35154f5ae1
fix constructor into acl aware repository
2021-11-03 15:35:38 +01:00
6911ace412
Refactor authorization helper to separate some methods
...
Methods regarding to role hierarchi are now delegated to a parent role helper.
2021-11-03 15:35:38 +01:00
87e16ec24f
authorization helper: fix consructor
2021-11-03 15:35:38 +01:00
965ea528e3
adaptations for acl with tasks
2021-10-26 18:05:06 +02:00
a8edef13a3
refactor centerType
2021-10-11 14:08:36 +02:00
120f7d8026
upgrade voter and acl for activities and implement autoconfiguration for
...
ChillProvideRole interface
2021-09-20 13:56:44 +02:00
b6c58a5c31
Continue work on ACL rewritting
...
* fix center resolver dispatcher
* add scope resolver
* tests for authorization helper
2021-09-20 13:56:44 +02:00
74598ee926
apply new role on accompanying period
2021-09-20 13:56:43 +02:00
dc09c9424a
refactor ACL for easy voter. Apply on TaskVoter
2021-09-20 13:56:43 +02:00
73653744d7
Prepare for deprecation of class Role, and add method to filter centers
2021-05-17 13:23:58 +02:00
eaa0ad925f
fix folder name
2021-03-18 13:37:13 +01:00