-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Being able to view the list of users attached to an organisation on the pro platform #6978
Comments
@manon-corneille I've removed the email |
Related issue : |
This issue is stale because it has been open 90 days with no activity. |
In fact it should be really easy to do as we have a "members" and "admins" field in the org sto file. |
Hey...wanted to resolve this issue..kindly assign it to me! |
@monalika Patnaik for this issue here is the structure of a typical org: {
"admins" : {
"xxxxx" : 1,
"yyyyy" : 1,
"zzzzz" : 1
},
"created_t" : 1620718096,
"creator" : "zzzzz",
"members" : {
"xxxxx" : 1,
"yyyyy" : 1,
"zzzzz" : 1
},
"name" : "My Food Company",
"org_id" : "my-food-company"
}
The best would be if you are capable of writing an integration test, where you create an org create multiple users and assign them to org, then display org page. But it might be harder than I think ! |
Okay...let me try i think I have to make changes in cgi/org.pl right? |
@MonalikaPatnaik: @manon-corneille suggested to put it on the org profile page. That's a page like this one: https://world.openfoodfacts.org/editor/org-unilever-france-gms It is rendered using the template /templates/web/pages/org_profile/org_profile.tt.html The template is called from this code in Display.pm: ` # Display the user or organization profile
When the user is an admin, you can have the template show a table with the org members. You will first have to generate the list of users from the structure that is in $user_or_org_ref (the one @alexgarel pointed to above), and pass the list to the template through the $user_template_data_ref structure. |
Okay okay..Working on it<3 |
What
Solution
I can imagine the solution as a button on the left panel : "View the organisation users".It would be great to have :
Part of
The text was updated successfully, but these errors were encountered: