451 Commits

Author SHA1 Message Date
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
328b4c4596
fix: Strict types interfaces: VoterHelperInterface, ProvideRoleHierarchyInterface and ProvideRoleInterface. 2021-11-23 10:40:34 +01:00
05dda33a7a Activity: fixes in voter
* the role CREATE is now transformed to CREATE_ACCOMPANYING_COURSE or
CREATE_PERSON when the subject is, respectively, a course or a person;
* the button at the list of activities is now labeled "create"
* the role FULL give access to both role
acTIVITY_CREATE_ACCOMPANYING_COURSE and ACTIVITY_CREATE_PERSON, but not
ACTIVITY_CREATE directly.
2021-11-23 09:06:05 +01:00
0867965d9c Minor fixes for closing accompanying course:
* check that transition can be applyied in menu;
* change organisation for activityVoter, and check for authorization in
    Activity Controller
* fix label 'create' in accompanying course document
* minor fix in accompanying course document voter
* change color when course is closed and show old user, and startdate /
    enddate
2021-11-22 20:24:08 +01:00
4c1e416a14 Merge remote-tracking branch 'origin/master' into issue296_internal_close_accourse 2021-11-22 17:14:11 +01:00
6028167513 allow the case when the referrer is null 2021-11-22 16:33:36 +01:00
f3792b2ed6 Merge remote-tracking branch 'origin/master' into issue294_suggestPersonInActivity 2021-11-22 14:06:27 +01:00
69384a84d1 Merge remote-tracking branch 'origin/master' into issue133_user_current_location 2021-11-22 13:43:22 +01:00
98760bc5e8 Merge remote-tracking branch 'origin/master' into doc/authorizaton-documentation-update 2021-11-22 10:30:05 +01:00
2c74e268d3 voter fixes 2021-11-22 10:19:14 +01:00
9fb29ec110 refactor search for using search by pertinence 2021-11-22 08:28:22 +00:00
89c2d74c33 Merge branch 'master' into 295_resume_retouches 2021-11-19 17:22:00 +01:00
nobohan
3ce3613c71 activity: change name of property type in activityType to allow property 'type' in the serializer (by DiscriminatorMap) 2021-11-19 14:12:41 +01:00
nobohan
d89a948fa1 activity: generalise concernedGroups component for use with calendar 2021-11-19 13:28:35 +01:00
nobohan
aa53df8bb0 activity: avoid adding persons|Users|Thirdparty if not allowed 2021-11-19 13:28:35 +01:00
nobohan
631ffa02f7 calendar: add suggestion for concernedGroups 2021-11-19 13:28:35 +01:00
nobohan
d0e9829a3c activity: fix links to third party view page 2021-11-19 13:28:35 +01:00
nobohan
aae7d2fb2a activity: naming of addSuggestedEntities 2021-11-19 13:28:35 +01:00
nobohan
b3cd7c5cdb activity: suggest requestor, user and ressources for adding persons|user|3rdparty 2021-11-19 13:28:35 +01:00
nobohan
909e2ca070 activity: delete admin_user_show in twig template because this route is not defined and should not be defined 2021-11-19 13:28:35 +01:00
f145d6c921 voters adjusted 2021-11-19 12:43:14 +01:00
Pol Dellaiera
0a522b465f
fix: Update typing information. 2021-11-19 12:32:21 +01:00
Pol Dellaiera
693b59c484
fix: Fix wrong repository. 2021-11-19 12:32:05 +01:00
Pol Dellaiera
5a6a15a351
fix: Add missing repository. 2021-11-19 12:31:48 +01:00
193d0fb94a vue_activity: style for suggestions, add and remove items 2021-11-18 16:02:40 +01:00
c7ffb7062a improve resume course styles 2021-11-18 16:02:09 +01:00
Pol Dellaiera
17ef963924
fix: Fix wrong entity class and a few other fixes. 2021-11-18 15:15:51 +01:00
Pol Dellaiera
370a24d3f5
fix: Fix PHPStan issues. 2021-11-18 12:36:50 +01:00
Pol Dellaiera
f9d36cc8a9
fix: Fix bug reported by the tests. 2021-11-18 12:03:49 +01:00
Pol Dellaiera
6ccc8d4cb8
fix: Let Symfony inject dependencies automatically. 2021-11-18 11:46:30 +01:00
Pol Dellaiera
d9b862925f
fix: Let Symfony inject dependencies automatically. 2021-11-18 11:41:41 +01:00
Pol Dellaiera
7dcf0f8dcf
fix: Inject newly created repository instead of having to deal with the container definitions. 2021-11-18 11:41:41 +01:00
Pol Dellaiera
97ab71b63d
fix: Add missing repositories, fix typing information, autoload Repository directory. 2021-11-18 11:41:40 +01:00
nobohan
63e5220084 activity: add user current location as default for a new activity 2021-11-17 15:21:53 +01:00
nobohan
cd4de2e244 activity: fix type error + add new property for new form 2021-11-17 15:19:24 +01:00
Pol Dellaiera
6cfcf91757
fix: Follow up f8aeb085946f7992afc551bbdf22d04b944cd08f and fix parameters type. 2021-11-16 16:28:20 +01:00
Pol Dellaiera
c68bda5c9b
fix: SA: Fix "...invoked with..." rule.
SA stands for Static Analysis.
2021-11-16 12:16:02 +01:00
Pol Dellaiera
f8aeb08594
fix: SA: Fix "might not be defined" rule.
SA stands for Static Analysis.
2021-11-16 11:41:12 +01:00
8296d60cb6 add base authorization to person search + improve search ordering 2021-11-15 11:17:03 +00:00
7482c709b3 Merge branch 'master' into 'deleteAccompanyingPeriodWork_234'
# Conflicts:
#   CHANGELOG.md
2021-11-12 12:06:34 +00:00
a2e9e4cf6a Merge branch 'userInAddPerson_278' into 'master'
person: user in the modal 'search person'

See merge request Chill-Projet/chill-bundles!198
2021-11-12 11:59:03 +00:00
e7fcebc99e add some method for resolving scope in twig 2021-11-09 17:04:49 +01:00
nobohan
66a2009aea person search: translation User + show User in concernedGroups 2021-11-09 16:07:11 +01:00
Pol Dellaiera
a1b381a3ea
Fix bug and remove obsolete issue. 2021-11-09 15:20:25 +01:00
nobohan
952435b36f Activity: correct accompanying_period_id param in twig 2021-11-08 13:52:22 +01:00
7fabe0214e household list of accompanying periods + upgrade DBAL version to 3.1 2021-11-08 10:57:14 +00:00
f16f45f3f3 Bugfix/activity fix role inheritance 2021-11-05 14:13:00 +00:00
8f541c8418 Merge branch 'master' into 'issue83_ACCent_addDocument_toAction'
# Conflicts:
#   CHANGELOG.md
2021-11-04 11:40:56 +00:00
c03b925bd9 Merge branch 'master' into 'issue153_ACCent_activity_admin'
# Conflicts:
#   CHANGELOG.md
#   src/Bundle/ChillCalendarBundle/Menu/UserMenuBuilder.php
2021-11-04 08:52:32 +00:00
nobohan
a768563cd0 location: display the error message in case of wrong phone number or email 2021-11-03 16:16:51 +01:00