<div class="gmail_quote">On Sun, May 17, 2009 at 9:21 PM, Tom <span dir="ltr"><<a href="mailto:tom.aurlund@intech.no">tom.aurlund@intech.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tom skrev:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Peter Bowers skrev:<br></div></div></blockquote>Short comment:<br>
<br>
The error situation has been fixed, but I have another one (which is the REAL problem in this case):<br>
<br>
1) The user has got his access set to "read":<br>
$idinfo[3] = 'read'<br>
$idinfo[1] = user ident<div class="im"><br>
<br>
$DefaultPasswords[$idinfo[3]] = "id:" . $idinfo[1];<br></div>
(which should be "translated" to: $DefaultPasswords['read'] = 'id:<user ident>).<br>
<br>
2) But I am still able to both change pages and store pages when logged in as this user (ident).<br>
<br>
How come ?<br>
</blockquote><div><br>Have you explicitly set $DefaultPasswords['edit'] to something else? If no edit password has been set then that tells pmwiki to allow edits without authorization. Since you have a read password it would "cascade" to the edit password, but your person is already authenticated and so it doesn't limit anything.<br>
<br>$DefaultPasswords[$idinfo[3]] = "id:" . $idinfo[1];<br>if ($idinfo[3] != 'edit' && $idinfo[3] != 'admin')<br> $DefaultPasswords['edit'] = crypt('something-unlikely-to-be-discovered');<br>
<br>That may do what you want.<br><br>-Peter<br></div></div>