This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

RE: [grubstreet] hmmmmm read only?

[prev] [thread] [next] [lurker] [Date index for 2002/12/11]

From: Ivor Williams
Subject: RE: [grubstreet] hmmmmm read only?
Date: 14:57 on 11 Dec 2002
On Wednesday, December 11, 2002 12:20 PM, Alex McLintock [SMTP:alex@xxxx.xx.xx] 
wrote:
> At 02:28 11/12/02, you wrote:
> >grubstreet seem to eb tellign me its read only now. is this right.
>
>
> At the risk of stating the obvious..... it is read only for me too.
>
Me too...

I don't know which rule we are tripping, but here's the code in usemod/wiki.pl:

sub UserCanEdit {
  my ($id, $deepCheck) = @_;

  # Optimized for the "everyone can edit" case (don't check passwords)
  if (($id ne "") && (-f &GetLockedPageFile($id))) {
    return 1  if (&UserIsAdmin());  # Requires more privledges
    # Later option for editor-level to edit these pages?
    return 0;
  }
  if (!$EditAllowed) {
    return 1  if (&UserIsEditor());
    return 0;
  }
  if (-f "$DataDir/noedit") {
    return 1  if (&UserIsEditor());
    return 0;
  }
  if ($deepCheck) {   # Deeper but slower checks (not every page)
    return 1  if (&UserIsEditor());
    return 0  if (&UserIsBanned());
  }
  return 1;
}

Looks like $EditAllowed has been enabled, or
a file called noedit has been created.

Something has changed ??!

Ivor.


-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/