[pmwiki-users] Block Link Creation from Group

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 27 13:17:18 CST 2007


On Tue, Feb 27, 2007 at 06:03:15PM +0000, Hans wrote:
> Tuesday, February 27, 2007, 5:18:57 PM, Patrick wrote:
> > An easy way is to create
> > an $EditFunction that disallows creating new pages:
> > ......
> 
> I tested this by putting into config.php:
> 
> $EditFunctions[] = 'CreateDisallowed';
> ...
> Would the new edit function need to be inserted at a special place in
> the $EditFunctions array?

Yes, it should go at the beginning of the array:

    array_unshift($EditFunctions, 'CreateDisallowed');

Sorry about that.

Pm



More information about the pmwiki-users mailing list