[pmwiki-users] $Author from $AuthId in b26

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 24 14:05:16 CST 2006


On Fri, Feb 24, 2006 at 05:07:12PM +0100, Roman wrote:
> > If a site administrator wants to enforce that an Author name should
> > always be the same as the login name, then it can be easily done
> > by putting
> >
> >    if (@$AuthId) $Author = $AuthId;
> >
> > after the include_once('scripts/authuser.php');  line (or whatever
> > is setting the value of $AuthId).
> 
> That's it, thanks. I went further and wanted to disable Author field
> in edit form at all because I don't want authors to be able to
> ovewrite their login name. 
> [...]

That's the way it's supposed to work; there was a bug in beta27 that
caused it to not work properly.  It's now fixed in beta28 (just
released).

Pm





More information about the pmwiki-users mailing list