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:
Go to/settings/admin/additional
Restrict number of rooms to 1 for a group
Share 1 room with that group
Connect as a user of that group
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).
System (please complete the following information):
Firefox [131.0.2]
App version [2.7.2]
Nextcloud version [29.0.7]
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.
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:
/settings/admin/additional
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).
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.