Check meeting before displaying a join button

Created on 17 May 2024, 6 months ago

Problem/Motivation

The default link (not the modal option) recreate the meeting whenever the user is a moderator or a normal user.
Thus normal user can enter rooms even if it hasn't been opened yet.

Steps to reproduce

Create a new virtual event BBB and go there as a normal user, you will be able to enter the room using the "Join Meeting" button.

Proposed resolution

Make a proper check and hide the button.

Remaining tasks

MR to be created.

User interface changes

A new text will appear to hide the button.

API changes

None.

Data model changes

None.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France tostinni

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

Merge Requests

Comments & Activities

  • Issue created by @tostinni
  • Status changed to Needs review 6 months ago
  • 🇫🇷France tostinni

    We also added a text change when the user is a moderator, this could probably use a new configuration text.

          $default_text = $entity->access('update') ? $this->t('Moderate Meeting') : $this->t('Join Meeting');
          $form['submit'] = [
            '#type' => 'submit',
            '#value' => $display_options["join_button_text"] ? $display_options["join_button_text"] : $default_text,
            '#attributes' => ['class' => ['btn-accent']],
          ];
    
Production build 0.71.5 2024