diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-20 15:34:05 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-07 18:18:29 +0200 |
commit | d2967ce0cff9f0e0f5b5114de02e337ea0dcbe97 (patch) | |
tree | 134ae2044f80dec405ff7e735b2410015b200135 /appinfo/routes.php | |
parent | 20d722901fb244166b4b78535e4058c1910c93b5 (diff) |
Rename and extend constants and methods for the new permissions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index f54c01d5e..dfc8ebdb8 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -354,21 +354,23 @@ return [ ], ], [ - 'name' => 'Room#setAttendeePublishingPermissions', - 'url' => '/api/{apiVersion}/room/{token}/attendees/publishing-permissions', + 'name' => 'Room#setAttendeePermissions', + 'url' => '/api/{apiVersion}/room/{token}/attendees/{permissions}', 'verb' => 'PUT', 'requirements' => [ 'apiVersion' => 'v(4)', 'token' => '^[a-z0-9]{4,30}$', + 'permissions' => '^(publishing-permissions|permissions)$', ], ], [ - 'name' => 'Room#setAllAttendeesPublishingPermissions', - 'url' => '/api/{apiVersion}/room/{token}/attendees/publishing-permissions/all', + 'name' => 'Room#setAllAttendeesPermissions', + 'url' => '/api/{apiVersion}/room/{token}/attendees/{permissions}/all', 'verb' => 'PUT', 'requirements' => [ 'apiVersion' => 'v(4)', 'token' => '^[a-z0-9]{4,30}$', + 'permissions' => '^(publishing-permissions|permissions)$', ], ], [ |