Forum

No Project restrict...
 
Notifications
Clear all

No Project restriction in ticket

7 Posts
2 Users
0 Reactions
6,961 Views
(@pierre-henri)
Posts: 12
Active Member
Topic starter
 
[#4877]

Hi,

I have restricted user ( ExternalProject manager), normaly they just have access to their own project, but when they open a ticket
In the section Prject they have access to all the project list ( the restriction is ok on the menu and they can't open a ticket in an other project)
My problem is just on the project visiibility.

I'm on the 6.5.2

Thanks in advance.


 
Posted : 04 Jan 2018 12H30
(@babynus)
Posts: 14952
Member Admin
 

Hi,
I cannot reproduce, all all seems correct with standard access rights.
For instance, corrected on Demo ( https://demo.projeqtor.org) as Manager; I can only see projects the user Manager is allocated to.

Can you please try and reproduce yur case on demo and/or post screenshots of your use case ?
(list of projects, access rights, allocation to projects)


 
Posted : 04 Jan 2018 12H59
(@pierre-henri)
Posts: 12
Active Member
Topic starter
 

Ok so this is my user case :

I have a user (external manager) with restricted project : TMA XXXXX
No problem on global project but when she open a ticket she have all the project list.

I give you the ticket screenshoot and the configuration


 
Posted : 04 Jan 2018 13H27
(@babynus)
Posts: 14952
Member Admin
 

Hi,

I could not reproduce first.
Then I played with user parameters and could reproduce.
Issue appears when user selects new parameter "restrict project list" to "Yes".
This is done to restrict list of project to project select in the project selector (and it's sub-project) but retreives full list (not corresponding to user access rights) when "all projects" is selected.

Issue recorded as Ticket #3181 and will soon be fixed


 
Posted : 04 Jan 2018 13H50
(@pierre-henri)
Posts: 12
Active Member
Topic starter
 

OK

Thank you for being so quick 🙂


 
Posted : 04 Jan 2018 13H59
(@babynus)
Posts: 14952
Member Admin
 

Thank you for being so quick 🙂

My wife never thanked me for this :whistle:

Quick fix is to replace line 281 in tool/html.php from

if(Parameter::getUserParameter("restrictProjectList")=="true") {

to

if(Parameter::getUserParameter("restrictProjectList")=="true" and getSessionValue("project") and getSessionValue("project")!='*') {

A better fix will soon be deployed, to take into account possible restriction on sub projects : if you have project P1, P1.1 and P1.2 (P1.1 and P1.2 are sub-project of P1) and user has creation rights on P1 and P1.2 but not on P1.1 (he is allocated to this sub-project with profile with less rights), then only P1 and P1.2 should be listed, whatever the selected project in the project selector.


 
Posted : 04 Jan 2018 14H12
(@pierre-henri)
Posts: 12
Active Member
Topic starter
 

Thank you for being so quick 🙂

My wife never thanked me for this :whistle:

😆 😆 😆 😆

Ok thanks it's works well:)


 
Posted : 04 Jan 2018 14H16
Share:

Scroll to Top