Submitted by : FrankLaurijssens at: 2005-10-05T01:00:50+00:00 (15 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

I have created a wiki under Plone 2.1 with Zwiki 0.46, with Add pages, Add comments, Edit pages and Rate pages permissions for Authenticated.

Now, when I log in with a user without the manager role, there's a textbox marked new at the bottom of the page, without any button.

The code in that decides if there should be any textbox at all says:

      <!-- page management form -->
      <div tal:condition="python:
                          (user.has_permission('Zwiki: Add pages',here) or

The code that decides what text and button should be displayed says:

      <span i18n:translate=""
            tal:condition="python:user.has_permission('Zwiki: Add pages',container)"  

So, the first check looks at here, while the second looks at container. This is an inconsistency.

Furthermore, this particular wiki resides in a subfolder called "wiki" in the Plone site. I would expect that when I set the "Zwiki: Add pages" permission on the "wiki" folder, all portal members can add wiki pages in that folder. They can when they create them through wikilinks, but the button only shows up when I set the permission one level up, on the Plone site. This makes me think that container in should have been here.


(property change) fixed for 0.51 I believe --simon, Wed, 08 Feb 2006 18:24:30 -0800 reply
Status: open => closed

Thanks, well spotted. I have made it consistently check the folder for Zwiki: Add pages permission, and the page for the others. I'm pretty sure that will do what users expect.

repair --frank, Mon, 04 Dec 2006 01:26:41 -0800 reply
Name: #1172 paco => #1172 New Page button inconsistency Category: admin-customizingskins => user-editing Severity: serious => normal Status: open => closed