[pmwiki-users] Block Link Creation from Group
Patrick R. Michaud
pmichaud at pobox.com
Tue Feb 27 13:36:35 CST 2007
On Tue, Feb 27, 2007 at 07:30:55PM +0000, Hans wrote:
> Tuesday, February 27, 2007, 7:17:18 PM, Patrick wrote:
> > Yes, it should go at the beginning of the array:
> > array_unshift($EditFunctions, 'CreateDisallowed');
> Thanks, this works. Now trying to save a new page in a disallowed
> group results in precisely nothing, i.e. the user hangs in the edit
> form, content is not lost, but also not saved. At least there is the
> message saying that creation of new pages is blocked.
> A more satisfying behaviour I find would be not to go into the edit
> form to begin with, if the new page is in a disallowed group, but be
> redirected to an error page. Saves some clicks and possible
> frustration in case the user started creating content and only
> discovers when trying to save that it is not allowed.
Sure, just change the CreateDisallowed function to redirect
to an error page instead of blocking the post.
More information about the pmwiki-users