littleredbutton / cloud_bbb

@bigbluebutton integration for @nextcloud
GNU Affero General Public License v3.0
103 stars 42 forks source link

Max number of rooms takes shared rooms into account #290

Closed pielonet closed 1 month ago

pielonet commented 1 month ago

Describe the bug Restrictions on the number of rooms (A) set in the admin interface prevents users from creating their own rooms if the number of rooms shared with them (B) plus the number of rooms the user has already created (C) exceeds the first number (A).

To Reproduce Steps to reproduce the behavior:

  1. Go to/settings/admin/additional
  2. Restrict number of rooms to 1 for a group
  3. Share 1 room with that group
  4. Connect as a user of that group
  5. User can not create a room : Room quota is 0/1 (which is OK since the user hasn't created a room yet) but input to create rooms is hidden and a message says that the quota was reached.

Expected behavior Input to create a room should be displayed to let the user create a room since their quota is not reached.

Screenshots On the following screenshot user has a quota of 4 and there are 4 rooms shared with them. A message says that the maximum number of room is reached although the user did not create any room (the quota indication 0/4 is OK though). image

System (please complete the following information):

Additional context It looks like shared rooms are taken into account to compute quota and creation blocks if the number of rooms created plus the number of shared rooms matches the quota.