-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.txt
40 lines (28 loc) · 1.5 KB
/
info.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TODO : manage tree categories
Use Gedmo
http://stackoverflow.com/questions/25090919/create-tree-nested-select-option
TODO : Export csv optimization
http://obtao.com/blog/2013/12/export-data-to-a-csv-file-with-symfony/
TODO : check results if
- multiple response for a user to en exercise (what the csv looks like, does the radar works, how to manage the stats)
- a user has not answered a question (csv + radar)
- a user has not answered an exercise (csv + radar)
- +++ Check for only QCU.
- in widget, check if on desktop or in WS
TODO : add user / Exercise parameter
- if no fine tuning for exercise through resourcePicker, use entity formtype with custom query.
TODO : Check access
Ex: CoreBundle/Controller/WorkspaceController:openAction
Notation for Entity ? @SEC\PreAuthorize("canAccessWorkspace('OPEN')")
@see : ForumBundle\Controller\ForumController.php
... "authorization" = @DI\Inject("security.authorization_checker"),
... $this->authorization->isGranted('EDIT', $tool);
resource creator : creator_id => ResourceNode:creator
//check if user is exo creator
exerciseSer = $this->container->get('ujm.exercise_services');
$isAdmin = $exerciseSer->isExerciseAdmin($exercise);
token = app.security.getToken()
WS repository : findIdsByUserAndRoleNames(User $user, array $roleNames)
Returns the ids of the workspaces a user is member of, filtered by a set of roles
the user must have in those workspaces. Role names are actually prefixes of the
target role (e.g. 'ROLE_WS_COLLABORATOR' instead of 'ROLE_WS_COLLABORATOR_123').