On 7/3/07, noskule <[EMAIL PROTECTED]> wrote:
> hi list
> is there a way to limit edit permission in the profiles group only for
> pages with the same name as the authors name, ie
>
> UserA can only edit Profiles.UserA but not Profiles.UserB

Try this local/Profiles.php script:

   <?php if (!defined('PmWiki')) exit();
   ## Author's name must match the page name in order to edit.
   if ($action == 'edit' && ! CondAuth(@$pagename, 'admin')) {
     @include_once($FarmD.'/scripts/author.php');
     if ($Author && $Author != @PageVar($pagename, '$Name')) {
       $action='browse'; }
   }

Hagan

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to