Permissions problem

Hello,
We have an installation of XWiki, connected to LDAP. There is one internal user too (Administrator).
Something happens, we have no access to some pages of XWiki with the following error:
Failed to execute the velocity macro. Cause: The execution of the velocity script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.
The same error is shown to Administrator and to any LDAP user, the page creator too. Some pages are affected, some pages are not affected. The permissions shown in ‘Page Administration’ section seem to be correct, they are the same for affected and for non-affected pages. I have the direct access to the database (PostgreSQL), I can fix anything, but I don’t understand where is the problem exactly.

Sounds like you removed SCRIPT rights from the user who did the install or you deleted that user. The author of a page which contains scripts need script right for the page to work.

Sounds like you removed SCRIPT rights from the user who did the install or you deleted that user. The author of a page which contains scripts need script right for the page to work.

The user who did the install is the internal ‘Administrator’. He is not removed.
How can I put back the necessary ‘script right’ for my users?

As I said the problem is only with the author of those scripts and not with the users who view the pages. You should make sure this Administrator user have administration right. Another possibility is that some other user modified standard pages after the install (despite the big warning you get when you do that).

As I said the problem is only with the author of those scripts and not with the users who view the pages.

OK, I see, the problem is in permissions of the author of those scripts. Do you mean the author of the page or the user who installed XWiki?

You should make sure this Administrator user have administration right.

Yes, definitely, he has administration right. I can do anything using this account, I can access the interface of administration of XWIki.

Another possibility is that some other user modified standard pages after the install

Definitely, nobody did it.

Please, explain me how can I:

  • check the permissions of scripts
  • modify the permissions of scripts

The author of the script is the current author of the page in which the script is located.

By checking/modifying the author of the page containing that script.

You indicated having the issue with “some pages”, is there a lot of those ? If there is only a few it suggest it does not have much to do with the user who installed the wiki (it would be broken a bit everywhere, like the whole administration UI for example) and that those pages where edited by a user after the install.