mirror of
https://github.com/suitenumerique/meet.git
synced 2026-10-14 00:50:48 +00:00
fixup! ✨(all) allow any authenticated user to start a recording
This commit is contained in:
@@ -61,9 +61,19 @@ def test_start_recording_anonymous(settings, recording_enabled, expected_status)
|
||||
assert Recording.objects.count() == 0
|
||||
|
||||
|
||||
def test_start_recording_non_owner_and_non_administrator(settings):
|
||||
"""Non-owner and Non-Administrator users should not be allowed to start room recordings."""
|
||||
@pytest.mark.parametrize("authenticated_participants_enabled", [True, False])
|
||||
def test_start_recording_restricted_room_non_owner_and_non_administrator(
|
||||
settings, authenticated_participants_enabled
|
||||
):
|
||||
"""
|
||||
On restricted rooms, non-owner and non-administrator users should not be
|
||||
allowed to start recordings, whether or not authenticated participants
|
||||
are allowed to record.
|
||||
"""
|
||||
settings.RECORDING_ENABLE = True
|
||||
settings.RECORDING_AUTHENTICATED_PARTICIPANTS_ENABLED = (
|
||||
authenticated_participants_enabled
|
||||
)
|
||||
room = RoomFactory(access_level=RoomAccessLevel.RESTRICTED)
|
||||
user = UserFactory()
|
||||
client = APIClient()
|
||||
|
||||
Reference in New Issue
Block a user