Re: [Hw4mdl-devel] Patch for capabilities
Brought to you by:
jhlinder,
trollinger
From: Ashley H. <as...@ne...> - 2008-04-30 07:25:25
|
Patch is attached Ashley Holman wrote: > Hi all, > > Here is a patch which demonstrates the use of roles/capabilities to > define whether a user has presenter access or not to a Live Classroom. > To edit the capabilities, as an Administrator to go Users -> Permissions > -> Define Roles. Edit a role, eg. "Student", and then you can change > the capability called "Has presenter access to Live Classrooms". The > default settings are to have teachers and admins as presenters and > students without presenter access. > > I've added a liveclassroom_getRole() function into > mod/liveclassroom/lib.php which is called instead of the generic > getRoleForWimbaTools() function in WimbaLib.php. The reason I moved it > is so that Live Classroom and Voice Tools can have separate capabilities > defined. > > I have only tested this in 1.9 and the capabilities are only implemented > for Live Classroom not Voice Tools, so this is just a proof of concept. > If you are happy with this implementation I can do some further testing > to get it working on older versions and also implement the capabilities > for the voicetools module. > > Regards > Ashley > > -- Ashley Holman Software Engineer NetSpot Pty Ltd 183 Melbourne Street, North Adelaide, 5006 Ph: +618 8361 6800, Fax: +618 8361 6811 |