Re: [Hw4mdl-devel] Catalyst code review - comments please
Brought to you by:
jhlinder,
trollinger
From: Ashley H. <as...@ne...> - 2008-01-17 00:10:33
|
Hi Thomas, > > Since the review, we've realised ... this module needs to define some > > capabilities and then use has_capability() > > Can you provide me more informations? > I think a capability could be defined for being an instructor for the Wimba tools. At the moment the getRoleForWimbaTools() function in WimbaCommons.php checks isstudent(), isteacher(), isadmin() etc. This could be replaced with has_capability(), and the default capabilities could be set up to match the current behaviour. Ie, the capability mod/liveclassroom:instructor would be assigned to the Teacher, Course Creator, and Admin roles. This would allow for better customisation of roles, and work in different contexts where roles are overridden etc. If you are interested I can make a patch. Cheers Ashley. PS. sorry for duplicate message - forgot to CC the list on the first one -- Ashley Holman Software Engineer NetSpot Pty Ltd 183 Melbourne Street, North Adelaide, 5006 Ph: +618 8361 6800 Fax: +618 8361 6811 |