|
37 | 37 | tags: [Rooms]
|
38 | 38 | summary: "Returns a list of available rooms on the server."
|
39 | 39 | description: >
|
40 |
| - Rooms to which the user does not have access (e.g. because they are banned) are not |
41 |
| - included. |
| 40 | + Rooms to which the user does not have access (e.g. because they are banned or the room or |
| 41 | + requires specific access) are not included. |
42 | 42 | responses:
|
43 | 43 | 200:
|
44 | 44 | description: successful operation
|
|
63 | 63 | $ref: "#/components/schemas/Room"
|
64 | 64 | 403:
|
65 | 65 | description: >
|
66 |
| - Forbidden. Returned if the user is banned from the room or otherwise does not have read |
67 |
| - access to the room. |
| 66 | + Forbidden. Returned if the user is banned from the room or does not have access to the |
| 67 | + room. |
68 | 68 | content: {}
|
69 | 69 | put:
|
70 | 70 | tags: [Rooms]
|
@@ -104,6 +104,15 @@ paths:
|
104 | 104 | Sets the default "read" permission (if true: users can read messages) for users
|
105 | 105 | in this room who do not otherwise have specific permissions applied.
|
106 | 106 | example: true
|
| 107 | + default_accessible: |
| 108 | + type: boolean |
| 109 | + description: > |
| 110 | + Sets the default "accessible" permission for users in this room who do not |
| 111 | + otherwise have specific permissions applied. This accessible permission only |
| 112 | + affects users who do not have read permission: accessible without read still |
| 113 | + allows the user to access room metadata (but not messages), while both false |
| 114 | + prevents room metadata access as well. |
| 115 | + example: true |
107 | 116 | default_write:
|
108 | 117 | type: boolean
|
109 | 118 | description: >
|
@@ -186,6 +195,8 @@ paths:
|
186 | 195 | $ref: "#/components/schemas/Room/properties/global_admin"
|
187 | 196 | default_read:
|
188 | 197 | $ref: "#/components/schemas/Room/properties/default_read"
|
| 198 | + default_accessible: |
| 199 | + $ref: "#/components/schemas/Room/properties/default_accessible" |
189 | 200 | default_write:
|
190 | 201 | $ref: "#/components/schemas/Room/properties/default_write"
|
191 | 202 | default_upload:
|
@@ -1043,6 +1054,17 @@ paths:
|
1043 | 1054 | room's messages even if the room's default allows reading. Specifying this as
|
1044 | 1055 | null will explicitly delete any user-specific read override (effectively
|
1045 | 1056 | returning the user's read permission to the room's default).
|
| 1057 | + accessible: |
| 1058 | + type: boolean |
| 1059 | + nullable: true |
| 1060 | + example: false |
| 1061 | + description: > |
| 1062 | + If true this grants permission to read the room's metadata when the user doesn't |
| 1063 | + have read permission. That is, having this true and read false means the user |
| 1064 | + cannot read messages, but can get information about the room, while both false |
| 1065 | + means the user cannot access any details of the room. Specifying this as null |
| 1066 | + will explicitly delete any user-specific accessible override, returning the |
| 1067 | + user's effective permission to the room's default. |
1046 | 1068 | write:
|
1047 | 1069 | type: boolean
|
1048 | 1070 | nullable: true
|
@@ -1659,6 +1681,15 @@ components:
|
1659 | 1681 | Whether new users have permission to read posts in this room by default. This property
|
1660 | 1682 | is only returned if the calling user has moderator/admin permissions.
|
1661 | 1683 | example: true
|
| 1684 | + default_accessible: |
| 1685 | + type: boolean |
| 1686 | + description: > |
| 1687 | + Whether new users have permission to access this room's information. This property only has |
| 1688 | + an effect for users who do not have read permission; it is designed to be set to false |
| 1689 | + (along with default_read) in order to create a room that users can neither read messages |
| 1690 | + from nor access any room metadata. This property is only returned if the calling user |
| 1691 | + has moderator/admin permissions. |
| 1692 | + example: true |
1662 | 1693 | default_write:
|
1663 | 1694 | type: boolean
|
1664 | 1695 | description: >
|
|
0 commit comments