REGmon-project / regmon

Athlete Monitoring in Sport Practice and Research
https://regmon-project.github.io/
MIT License
6 stars 1 forks source link

User2Group-Assignment empty #23

Open QuasiMoko opened 5 months ago

QuasiMoko commented 5 months ago

Hello together, what a great project :-)!

I tried to assign a user to multiple groups as administrator. In the user management section -> user profile, the location and group field is blocked for any inputs? I can't assign just one group. Only way I found, is in the self-registration form to register for one group in the moment of registration.

Did I miss some options?

THX

QuasiMoko commented 5 months ago

Ok, now I may understand the userstory and found a bug? Nevertheless, REGmon looks best for our usecase.

To clarify if I am right? In calendar view I have to choose the right location and user to get the appropriate Option-Buttons where I can assign users to groups. As I see it's not provided to assign one user to multiple locations. Despite of that it's possible to assign one group admin to different groups of different locations but the groupadmin itself is not able to switch to a second location to administrate the other group. bug?

When you add a new user as Admin->GroupAdmin through usermanagement-grid (admin) or groupmanagement-grid (groupuser-management-button) the method misses to set the users initial _locationid and _groupid. So the add-user-method in php/ajax.users.php should be similar to login/registration.php

ChristianStrotkoetter commented 5 months ago

Hi QuasiMoko, first of all, thanks for participating in the project and sharing feedback! Do you want to share what your usecase looks like? :)

As I see it's not provided to assign one user to multiple locations.

Yes, all users - except admin - are meant to be assigned to only one single location and corresponding (subset of) groups.

Despite of that it's possible to assign one group admin to different groups of different locations but the groupadmin itself is not able to switch to a second location to administrate the other group. bug?

Assigning users to groups of different locations shouldn't be possible, so yes, this is a bug.

In calendar view I have to choose the right location and user to get the appropriate Option-Buttons

Yes, the displayed content in options view depends only on the chosen group, while the calendar view depends on chosen group and user (user-dropdown disappears when toggling to options view). This is true for all profiles.

I tried to assign a user to multiple groups as administrator.

This functionality is not intended at the moment. New users can be created either by self-registration or by admin profiles via group-options->group-users. In both cases, the user is assigned to this one group only.

If users want to be in more than one group, they need to request access via the group dropdown. Public groups are visible for all users, private groups can be requested by entering the key via "Private Group...". Admin profile may allow/deny access. Groups with access are marked with a green checkmark.

When you add a new user as Admin->GroupAdmin through usermanagement-grid (admin) or groupmanagement-grid (groupuser-management-button) the method misses to set the users initial location_id and group_id. So the add-user-method in php/ajax.users.php should be similar to login/registration.php.

As far as I can see, this is correct, thanks for the hint. Maybe @kencreek can check as well.

QuasiMoko commented 4 months ago

Hi @ChristianStrotkoetter, thanks for your reply.

My usecase is as following and I'm not sure how to build the best structure to organize it in REGmon, yet:

May you can give me some good hints that it's as easy as possible to handle especially for the athletes?

Thanks a lot