Finally, there was a problem linked with Tomcat (and/or Xwiki) cache...
On my Tomcat, usually I used to modify .vm template file under ./temp/0-ROOT/ (without
restart tomcat or with a simple restart) but I must restart AND remove /work/Catalina/*
&& /temp/*, if I want avoid some variables with old or incorrect value.
________________________________
De : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr
À : Ecaterina Moraru (Valica) <valicac(a)gmail.com>om>; XWiki Developers
<devs(a)xwiki.org>
Envoyé le : Vendredi 24 octobre 2014 11h31
Objet : Re: [xwiki-devs] $hasCreateSpace variable problem on flamingo Xwiki 6.2.2
Yes I know but the problem is I didn't manage to reproduce this bug (perhaps it was
due to my custom template or complicate ACL) . I thought you could check with facility
the bug...
________________________________
De : Ecaterina Moraru (Valica) <valicac(a)gmail.com
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>fr>; XWiki Developers
<devs(a)xwiki.org>
Envoyé le : Vendredi 24 octobre 2014 10h58
Objet : Re: [xwiki-devs] $hasCreateSpace variable problem on flamingo Xwiki 6.2.2
Pascal,
for this kind of problems a
jira.xwiki.org issue is much better than a mail.
Thanks,
Caty
On Thu, Oct 23, 2014 at 4:42 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
Hi,
I encountered a probem with my
/skins/flamingo/menus_create.vm. I had "Create" button empty and I wondered
why.
I tried to debug and I found that $hasCreateSpace was true but with ACL it must be false
(it was false in page content).
To fix it I must insert this line
#set ($hasCreateSpace = $xwiki.hasAccessLevel('edit',
"${reservedSpaceName}.DocumentReservedForInternalXWikiUsage"))
before
#set($displayCreateSubmenu= $hasCreateSpace || $hasCreatePage || $displayCreateWiki)
Perhaps #template("xwikivars.vm") is missing at the begining of
menus_create.vm?
Could you check it?
Thanks
Pascal BASTIEN
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs