Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3277

Host role assigned in course context (instead of module context) when activity created

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: Module: Adobeconnect
    • Labels:
      None
    • Database:
      Any
    • Workaround:
      Hide

      This is only an issue for people who have more than one user in a course creating Adobe Connect activities and who should have 'Host' access to the activities they created, but not necessarily to those created by others in the same course. I suspect this is a rare case.

      Show
      This is only an issue for people who have more than one user in a course creating Adobe Connect activities and who should have 'Host' access to the activities they created, but not necessarily to those created by others in the same course. I suspect this is a rare case.
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      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"
      ================================

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: