Re: [Hw4mdl-devel] Catalyst code review - comments please
Brought to you by:
jhlinder,
trollinger
From: Ashley H. <as...@ne...> - 2008-02-04 23:08:25
|
Hi Thomas, Thanks for that info on the StudentBis role. The isteacher() etc functions are now replaced with has_capability(). Modules can define their own capabilities for each role which I am working on a patch for. Cheers Ashley. Thomas Rollinger wrote: > Hi Ashley, > > StudentBis is a temporary role. It used when the teacher switches his > role to a student role by the drop down "Switch role to ..." . > This role has the same behavior than student role except for the > launching of the tools. In this case, a popup will alert the teacher > that the tool is launched with the student privilege. > > Do you know which functions replace isteacher() isadmin() in the new > version of moodle? > > Best > > Thomas > > On 3 févr. 08, at 21:07, Ashley Holman wrote: > > >> Hi Thomas, >> >> In the getRoleForWimbaTools() function in WimbaLib.php, one of the >> return values is "StudentBis". What is that role and is it still >> needed? I'm working on using capabilities to define the Wimba roles >> so wanted to see which situation "StudentBis" should be used in... >> does it need its own capability defined? >> >> Also I note that the isteacher() isadmin() etc functions are in >> Moodle's lib/deprecatedlib.php as of 1.7 so its probably important >> that these functions be no longer used. >> >> Thanks >> Ashley. >> >> -- Ashley Holman Software Engineer NetSpot Pty Ltd 183 Melbourne Street, North Adelaide, 5006 Ph: +618 8361 6800 Fax: +618 8361 6811 |