HRHR-project / e-registry-app

0 stars 1 forks source link

FWAname TEI attribute (username type) #115

Open iambodo opened 6 years ago

iambodo commented 6 years ago

On search or registration pages, the link between FWA name and Union name selection does not work unless the user has "superuser" permissions.

Its a special feature to erEgistry app, because the "Union name" box lists only OUs of a certain level (union); selecting that filters the FWA name to only those usernames of type FWA who are assigned under that OU. image

All Tests with "mFWA_int_csba" model user separately (i.e. not cumulative adjustments)

Test 1 Add all user-management related permissions to "Field intervention" user role to model user Null result

Test 2 Add all OU-management related permissions to "Field intervention" user role Null result

Test 3 Switching database language to English of model user Null result

Test 4 Change model user's data entry and data output OUs to root Null result

Test 5 Add superuser role to model field user Success! Was able to view all FWAnames correctly image

Test 6 However, without superuser role on same user, in the TRACKER CAPTURE app, the model user can view ALL usernames and ALL OUs. This suggests to me it is not an issue with sharing and permissions config for the user, but a special bug within the eRegistry app. image

It may also be a permissions issue which we do not understand. Please inform which permission is necessary for this task.

iambodo commented 6 years ago

UPDATE: performed Test 7 Added all permissions for the test user's user role, EXCEPT "ALL" Null result

When I then added the "ALL" user role permission, I could then view the FWA names.

Suggests there is a required user permissions in the eRegistry app which is not reflected in the user role permissions.

Test 8 This feature works fine on the eReg Android app.

Test 9 This works on eRegistry app IFF the user has a facility intervention or facility control user group. We don't fully understand the mechanism for why this is the case.

Please advise.