Summary: Restricts access to PageActions by role
Version: 1.0
Maintainer: BenWilson
Categories: CMS


Some people want to merge the "best features" of UserAuth and AuthUser. Among these is integration with CMSLike. Is it possible to have CMS behavior with AuthUser?


A site may have CMS Like behavior while using AuthUser without fancy footwork.

Create the CMS Menu. PmWiki already comes with a page dedicated to the page actions Site.PageActions. So, all we need to do is adjust this page to allow for role-based options. Here is an example.

(:if ! [ auth admin || authid ] :)
(:if [ auth admin || authid ]:)
(:if auth edit:)
· [[{$FullName}?action=edit|$[edit]]]
· [[{$FullName}?action=diff|$[history]]]
(:if auth admin:)
· [[{$FullName}?action=attr|$[attr]]]
· [[{$SiteGroup}.AuthUser?action=edit|$[users]]]


  • This recipe was last tested on PmWiki version: pmwiki-2.3.34
  • This recipe requires at least PmWiki version: any version with PmWiki.AuthUser


No releases, just information

See Also


BenWilson August 23, 2006 -- Updated. BenWilson December 30, 2005 -- Initially Written


See discussion at AuthUserCMSLike-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.