Forum

[SOLVED] API access...
 
Notifications
Retirer tout

[SOLVED] API access right issue fetching object history

3 Posts
2 Utilisateurs
0 Reactions
1,574 Vu
 Dan
(@caccia)
Posts: 340
Honorable Member
Début du sujet
 
[#8219]

Hello,

Going deeper into the use of the Projeqtor API, we've hit an issue related to access rights.
Maybe related to this topic ?  https://www.projeqtor.org/fr/forum-fr/2-submit-issues/12222-9-3-4-9-5-0-api-issue-on-planningelements-access-rights  

With the following query :

{{baseURL}}/api/History/search/refType='Ticket'/refId={{ticketID}}/colName='idStatus'

- The solution works great for a user with administrative account
- When trying the same request with a Project Leader account, result is :
  - empty result if the {{ticketID}} belongs to a project the user has access to
  - valid result if the {{ticketID}} belongs to a project the user does not have access to

=> So in fact the PL can get data from tickets that he does not have access to.

 


 
Posté : 21/04/2022 12:40 pm
(@babynus)
Posts: 14952
Membre Admin
 

Thanks for pointing out the issue.
Ticket #6142 recorded


 
Posté : 22/04/2022 11:41 am
 Dan
(@caccia)
Posts: 340
Honorable Member
Début du sujet
 

Great, thanks 🙂

Extra info: if I'm not mistaken, the same issue applies to Notes as well.


 
Posté : 25/04/2022 2:48 pm
Share:
Retour en haut