Here is a summarization of the feedback provided by @lucaa
1. Confusing wording about execution rights in the dialog
The sentence:
“Scripts and objects execute only with the selected rights.”
is unclear and misleading.
In XWiki, scripts and special objects always execute with the rights of the last author who edited the page. There are no “free-floating” rights used for execution, unless this is meant to describe the behavior introduced by required rights.
When required rights are not enforced, it’s clear whose rights are used (the last editor). When they are enforced, the text no longer mentions any user, which makes it feel like two incomparable situations.
The existing documentation is also confusing, especially this sentence:
“Denying script, wiki admin, or programming right when it is not explicitly granted.”
Here, “granted” should actually be “required”.
| Current |
Suggested |
Implementation in the design proposal |
| “Scripts and objects run using the rights of the last person who edited the page.” |
“Scripts and objects are executed with all the rights of the last person who edited the page.” |
Yes |
| “Scripts and objects execute only with the selected rights.” |
“Scripts and objects are executed with the rights of the last author who edited the page, but only those rights which are explicitly required, even if the author has more rights.” |
Yes, rephrased |
| “Only users with ‘Edit’ right and the selected rights can edit the page.” |
“Only users with the ‘Edit’ right and the explicitly selected rights can edit the page.” |
Yes, rephrased |
2. Lack of consistency in the “Information about the current required rights” section
In the section
#InformationAbouttheCurrentRequiredRights, the explanations for the three cases are inconsistent. Ideally, all three should answer the same set of questions, but currently they don’t.
-
Case 1
“No rights are currently required on this page. It runs using the rights of the last person who edited it.”
This answers:
But it’s unclear whether required rights are enforced or not.
-
Case 2
“Required rights are enabled for this page, but none are defined. Only the standard ‘Edit’ right is needed on this page, and no special rights apply to its content.”
This answers:
But it also introduces new concepts that weren’t mentioned before:
-
Case 3
“To edit this page and run its content, users need to have at least this right:”
Suddenly, this talks about who can edit the page — a concern that wasn’t addressed at all in the previous two cases.
Suggested improvement
For each case, the text should clearly and consistently answer the same core concerns, such as:
-
Are required rights enforced on this page?
-
Which rights are required?
-
Which rights are used to execute the page content?
-
Who is allowed to edit the page?
This doesn’t need to be presented as bullet points, but the wording should make sure all these concerns are clearly addressed in every case.