Re: [Hw4mdl-devel] Catalyst code review - comments please
Brought to you by:
jhlinder,
trollinger
From: Thomas R. <tro...@wi...> - 2008-01-17 15:29:03
|
Hi, It can be great if you can make the patch. Can you please start from the code of the branche "team/Thomas" because trunk is not up to date and will not working correctly. Best Thomas On 16 janv. 08, at 19:08, Ashley Holman wrote: > 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 > > |