Closed papierkorb27 closed 8 years ago
Using the code from the current git checkout of the /adm_program/system/classes/user.php and adapting to the code in v3.1.3 to line 938 seems to work:
{ // alle angemeldeten Benutzer duerfen Rollenlisten/-profile sehen return true; } if($row['rol_this_list_view'] == 1 && array_key_exists($row['rol_id'], $this->list_view_rights) && $this->list_view_rights[$row['rol_id']]) { // nur Rollenmitglieder duerfen Rollenlisten/-profile sehen return true; }
Additionally its a good idea to add the condition "AND cat_id != 3" to the prior sql query that the user cant access to other profiles from user which take part to a same presentation with registration.
Your proposed fix worked and looks good. Thanks for the hint.
Hi fasse, wouldnt be wise to add the SQL statement "AND cat_id != 3" to line 919? Otherwise you have access to other profiles from users which take part to a same presentation with registration?
what is cat_id 3 in your installation?
what do you mean with
presentation with registration ?
I thought entries with cat_id 3 are "date roles" in every installation?
prensentation with registration = event dates where i can register my participation
I think if you didnt restrict this query, you get access to every other profile data vom users which take part at this event date too (because you are in the same "date"-role).
Hi fasse,
have you thought about the role problem? Users can take part at the same event ("event role") but can be in different roles. at this situation they shouldnt have access to the other profiles. at this moment they have access because they are in the same event role
The proposed fix "AND cat_id != 3" didn't work, we need a check if the user is just in the same "event role" and in no other common roles, the access should be forbidden.
I will look at this.
@papierkorb27 this is because the event roles have the right to view profile data of other role members. If you remove this right then the users are not able to view the profile. Maybe we must add restrictive rights to event roles in future versions.
Ok, so it would be an option to disable the right "Rollenmitgliedschaft sehen" by default if a user creates a new event role? Should I create a new issue?
There seems to be a problem in v3.1.3 regarding access to profiles from others members even though access should be disabled:
Reproduced on http://demo.admidio.org