This issue has been created
There is 1 update.
 
 
Rights API / cid:jira-generated-image-avatar-3330fa8e-6506-48b4-970c-2878d383f461 RIGHTSAPI-39 Open

Removing all right are not applied

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b17d3827-6565-4bff-963c-34cbb712cf30 Josué Tille created this issue on 31/Jul/24 15:52
 
Summary: Removing all right are not applied
Issue Type: cid:jira-generated-image-avatar-3330fa8e-6506-48b4-970c-2878d383f461 Bug
Affects Versions: 1.1.1, 2.1
Assignee: Unassigned
Created: 31/Jul/24 15:52
Priority: cid:jira-generated-image-static-major-779e52b7-9f48-47b6-ab65-b9b758372747 Major
Reporter: Josué Tille
Description:

Step to reproduce:

Add some rights

$services.security.rights.saveRules($someRules, $reference)

Clear all rights

$services.security.rights.saveRules([], $reference)

 Expected result: all right are removed as we pass an empty list

Currently the last call has no effect and all right are keep.

Note this is due of a regression of this change: https://github.com/xwiki-contrib/api-rights/commit/0b20e3c6101579a40445330d2741844d6e7b0e34#diff-ac8e48f22cfc07a9dd85f96aeab85a8d00a58fdd6411e70e506154889091acb7R94

 
 

1 update

 
cid:jira-generated-image-avatar-b17d3827-6565-4bff-963c-34cbb712cf30 Changes by Josué Tille on 31/Jul/24 15:52
 
Assignee: Josué Tille