[dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 30 Jan 2006 23:09:17 +0000
Andreas Gohr wrote:
The profile button is only shown when $auth->canDo('modifyUser') returns
true. The MySQL backend only returns true for that when the delGroup and
delUserGroup config strings are set.
This is bad because both are not needed for letting a user change
it's profile (You can't change your groups in the profile dialog).
I don't think there is any reason for modifyUser to be connected to
delGroup.
I'd reckon MySQL backend is being to stringent in refusing
canDo(modifyUser) if leaveGroup & joinGroup aren't supported. If some
parts of a user profile can be modified, the backend should return true
and determine which parts of the modifyUser request to apply and which
to reject.
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Matthias Grimm
- References:
- [dokuwiki] [PATCH] MySQL canDo() patch
- From: Matthias Grimm
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Chris Smith
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
- » [dokuwiki] Re: [PATCH] MySQL canDo() patch
The profile button is only shown when $auth->canDo('modifyUser') returns true. The MySQL backend only returns true for that when the delGroup and delUserGroup config strings are set.
This is bad because both are not needed for letting a user change it's profile (You can't change your groups in the profile dialog).
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Matthias Grimm
- [dokuwiki] [PATCH] MySQL canDo() patch
- From: Matthias Grimm
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Chris Smith
- [dokuwiki] Re: [PATCH] MySQL canDo() patch
- From: Andreas Gohr