As a developer I want to adjust the current users meeting role

Created on 7 July 2025, about 2 months ago

Problem/Motivation

The default behavior of the module is to decide the meeting role "viewer" or "moderator" based on the entity access. Users with update rights are moderators and users with view rights only are "viewers".

As a developer I want to create my own rule to decide who is "viewer" and who is "moderator".

Proposed resolution

Implementing a hook that makes that possible.

API changes

New hook implemented

function hook_bigbluebutton_meeting_role_alter(&$role, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Session\AccountInterface $account) {
  // Example: Force all users with a certain permission to be viewers.
  if ($account->hasPermission('never_join_as_moderator')) {
    $role = 'viewer';
  }
}
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom globexplorer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024