Skip to content

Commit

Permalink
server: remove deprecated permissions field from `GET /api/room/:ro…
Browse files Browse the repository at this point in the history
…om` endpoint (#1768)
  • Loading branch information
dyc3 committed Apr 30, 2024
1 parent cf03f77 commit a63aa8c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
10 changes: 1 addition & 9 deletions client/src/components/RoomSettingsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,7 @@ onMounted(async () => {
function intoSettings(obj: OttApiResponseGetRoom): RoomSettings {
return {
..._.omit(obj, [
"name",
"isTemporary",
"users",
"queue",
"permissions",
"hasOwner",
"grants",
]),
..._.omit(obj, ["name", "isTemporary", "users", "queue", "hasOwner", "grants"]),
grants: new Grants(obj.grants),
};
}
Expand Down
2 changes: 0 additions & 2 deletions common/models/rest-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ export interface OttApiResponseGetRoom extends RoomSettings {
hasOwner: boolean;
grants: Grants;
autoSkipSegmentCategories: Category[];
/** @deprecated */
permissions: Grants;
restoreQueueBehavior: BehaviorOption;
users: RoomUserInfo[];
}
Expand Down
8 changes: 1 addition & 7 deletions docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,6 @@ paths:
queue:
type: array
items: {}
permissions:
type: array
items:
type: array
items:
type: number
name:
type: string
isTemporary:
Expand Down Expand Up @@ -200,7 +194,7 @@ paths:
$ref: "#/components/schemas/visibility"
queueMode:
$ref: "#/components/schemas/queuemode"
autoSkipSegmentCategories:
autoSkipSegmentCategories:
$ref: "#/components/schemas/autoSkipSegmentCategories"
grants:
description: Map of role numbers to the bitmask of permissions that role has
Expand Down
1 change: 0 additions & 1 deletion server/api/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ const getRoom: RequestHandler<{ name: string }, OttApiResponseGetRoom, unknown>
])
),
queue: room.queue.items,
permissions: room.grants,
hasOwner: !!room.owner,
};
res.json(resp);
Expand Down

0 comments on commit a63aa8c

Please sign in to comment.