Re: [MRBS-general] Doubt in mrbs_auth.inc
Brought to you by:
jberanek
From: Campbell M. <cam...@gm...> - 2013-07-21 11:14:41
|
Yes, that set of functions is not very consistent. In order to preserve compatibility of existing code I've added in Rev 2742 a new optional parameter, $just_check=FALSE, to checkAuthorised() so that if you just want to check whether a user is authorised for the page you can call checkAuthorised(TRUE). I guess the same could be done for getAuthorised(), but I haven't done it yet - could do if you think it would be useful. Campbell > -----Original Message----- > From: Diego Zuccato [mailto:die...@un...] > Sent: 24 June 2013 08:23 > To: General purpose list (support/developers/users) > Subject: [MRBS-general] Doubt in mrbs_auth.inc > > Hi all. > > Shouldn't that authGet() be removed from getAuthorised() ? > IIUC, getAuthorised should only check if the user is authorised or not, > not prompt for credentials. > > -- > Diego Zuccato > Servizi Informatici > Dip. di Fisica e Astronomia (DIFA) - Università di Bologna > V.le Berti-Pichat 6/2 - 40127 Bologna - Italy > tel.: +39 051 20 95786 > mail: die...@un... > > 5x1000 AI GIOVANI RICERCATORI > DELL'UNIVERSITÀ DI BOLOGNA > Codice Fiscale: 80007010376 > www.unibo.it/Vademecum5permille > > Questa informativa è inserita in automatico dal sistema al fine > esclusivo della realizzazione dei fini istituzionali dell’ente. > > ----------------------------------------------------------------------- > ------- > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > mrbs-general mailing list > mrb...@li... > https://lists.sourceforge.net/lists/listinfo/mrbs-general > Want to unsubscribe: mailto:mrbs-general- > re...@li...?subject=unsubscribe |