Hi,
Deleting the XWiki.Admin user is not a good idea. It is generally used as
the last author and content editor of pretty much all the default XWiki
documents, most of them containing scripts. A script can only execute if
its last content author has the SCRIPT right. If that author is deleted,
then the script also loses its right to execute. So it does not matter what
user you use to *see* the script, but what user you used to *save* the
script (thus granting it the rights of this last user/author).
My suggestion is that you undelete/recreate the XWiki.Admin user (easiest
option) and then disable it (i.e. mark it as inactive to not allow it to
log in), if you don`t want to use it. This way the old scripts inside wiki
pages will resume functioning.
Note that this is not only about the Admin user, so you need to be aware
that once you delete a user, you "revoke" the right of execution for any
scripts he might have authored. This is generally a good thing, but it can
also bite you, as you`ve seen.
This extension might also be useful (but recommended only for users other
than XWiki.Admin):
http://extensions.xwiki.org/xwiki/bin/view/Extension/Change+Content+Author
Hope this helps,
Eduard
On Tue, Aug 16, 2016 at 11:38 AM, Tom Neumann <tom.neumann(a)outlook.de>
wrote:
Hi all,
I've got a problem with my xwiki build right now.
I configured LDAP and gave my LDAP user all the rights on the wiki, but I
forgot to make him the owner of the wiki.
After that I logged in with the LDAP user and deleted the old admin
account and tried to set my LDAP user as owner of the wiki.
Now every page shows this message:
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.]. Click
on this message for details.
Even the superuser account can't see the pages normally.
What can I do? Is there a setting to give velocity macro rights to
everybody?
Or can I edit the database somehow?...
Thanks,
Tom
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users