Forum

Issue with the user...
 
Notifications
Retirer tout

Issue with the user's Role

2 Posts
2 Utilisateurs
0 Reactions
1,386 Vu
(@septseault)
Posts: 3
Active Member
Début du sujet
 
[#7696]

Hi,

I have seen some strange behavior of projeQtor for user with a role of "Project Leader" : depending of the user with this role, Cost or Work information are not accessible in the project.
After some testing, I have seen this issue appears when the project selector is set to "All Projects".

To understand this issue, I had a look in the code in objectDetail.php,
and it seems that the variable defaultProject is set to first project of the user. And so, if the user as only a role of classical member on this project, restrictions appear on the selected project even if it's not this first project.
Just to check, I have commented the line
" $defaultProject=$firstId; "
And the user seems to get the right permissions, but may broke something else.
But I haven't checked in depth exactly what the code does, I could be wrong.
Do you have a feeling about it?

Regards
 


 
Posté : 16/08/2021 7:48 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

This may be an issue, defaultProject should be set differently for Project objects.
We'll have a look and propose a fix


 
Posté : 18/08/2021 7:05 pm
Share:
Retour en haut