-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
1.9.10
-
None
-
Any
-
-
MOODLE_19_STABLE
Hi,
I am trying to map out the expected behaviour of this module, and think I have found a bug.
The Moodle docs http://docs.moodle.org/19/en/Remote_Learner_Adobe_Connect_Pro_Module) say: "The creator of the activity will automatically be assigned the role of Host for the Adobe meeting." However, I noticed that when an Adobe Connect activity is created, the host role is assigned in the course context, instead of the module context.
My understanding is that the "Adobe Connect Host", "Adobe Connect Presenter" and "Adobe Connect Participant" roles are designed to be assigned to a user alongside their normal role in a given context (hence most permissions being set to "Not Set" so as not to conflict with another role in the same context). Furthermore, not setting these permissions directly within existing roles allows for fine-grained control of who has which adobe connect role right down to the activity context. The "assign roles" button on the "Meeting info" page shows/assigns roles at the module context, and I would expect a user creating an adobe connect activity to be assigned the host role for that activity (and not necessarily every other Adobe Connect activity in that course).
Is this a bug, or have I misunderstood the expected behaviour?
The version of the module: 2011072100
================================
Context: lines 44-55 in lib.php
================================
// Assign the current user with the Adobe Presenter role
$context = get_context_instance(CONTEXT_COURSE, $adobeconnect->course);
if (!has_capability('mod/adobeconnect:meetinghost', $context, $USER->id, false)) {
$roleid = get_field('role', 'id', 'shortname', 'adobeconnecthost');
if (role_assign($roleid, $USER->id, 0, $context->id))
{ //DEBUG }else
{ echo 'role assignment failed'; die(); } }
================================
Note: The comment in the above code should probably read "Assign the current user with the Adobe Host role"
================================