Hi,
I am building a site using Pier and I have the following problem related to user rights. The explanations are rather long. I have two groups of users: - admins - An admin can do anything, including changing rights. - editors - An editor can only Edit, Move, Remove, Add, Copy and Logout. I have two users (and will have more in the future): - admin - belongs to both the admin and editors groups. - editor - belongs to the editor group. I created 2 Commands components and embedded both in the page: - completeCommands - this component include all commands. It has the following rights: owner mode: --aaa-ccccemrsv group mode: --aaa-ccccemrsv other mode: --------------v owner: admin group: admins - editorCommands - this contains only the editor commands. It has the following rights: owner mode: --aaa-ccccemrsv group mode: --aaa-ccccemrsv other mode: --------------v owner: admin group: editors When I login as admin, I see both components, as I expected. The problem is that when I login as editor, I only see the Logout command from the editorCommands. What am I doing wrong? Cheers, Doru -- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/ "Problem solving efficiency grows with the abstractness level of problem understanding." _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
> When I login as admin, I see both components, as I expected. The
> problem is that when I login as editor, I only see the Logout command > from the editorCommands. What am I doing wrong? The list of commands the command widget shows is always reduced to a list of currently useable commands (permission and context wise). This means if you setup your widget to show 'Edit', 'Add' and 'Logout', it won't show 'Edit' if the user has not the permission to edit the current page or the current page has no edit command at all. It also won't show 'Add' if the current structure doesn't allow children. And the last example, it won't show 'Logout' if the hasn't been logged in. Does that help? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hi Lukas,
Yep, it helped quite a bit :). It works now. Cheers, Doru On Oct 1, 2007, at 2:38 PM, Lukas Renggli wrote: >> When I login as admin, I see both components, as I expected. The >> problem is that when I login as editor, I only see the Logout command >> from the editorCommands. What am I doing wrong? > > The list of commands the command widget shows is always reduced to a > list of currently useable commands (permission and context wise). > > This means if you setup your widget to show 'Edit', 'Add' and > 'Logout', it won't show 'Edit' if the user has not the permission to > edit the current page or the current page has no edit command at all. > It also won't show 'Add' if the current structure doesn't allow > children. And the last example, it won't show 'Logout' if the hasn't > been logged in. > > Does that help? > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/ "To lead is not to demand things, it is to make them happen." _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |