This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
FS#218 Impossible to login if useacl is 1
Using latest code from darcs repository, pulled today.
I've set $conf['useacl'] to 1 (the rest of config variables are not touched) and when I try to login by pressing 'login' button, I get:
"Sorry, you don’t have enough rights to continue. Perhaps you forgot to login?"
Which makes logging in impossible.
The problem is that auth_aclcheck() returns -1 while it probably should return AUTH_NONE. This causes $info['perm'] to be -1 so act_permcheck() return 'denied' because if($INFO['perm'] >= $permneed) return $act; is not true.
Since act_dispatch() calls act_permcheck() before dispatching 'login' request to act_auth().
Also, act_auth() doesn't seem to handle 'login' properly anyway (it doesn't seem to handle 'user not logged in and wants to login' case).