Update Role.md
- Convert id to String - Convert permissions to String
This commit is contained in:
parent
07f305fe82
commit
103fd0175d
|
@ -16,10 +16,10 @@ aliases: [
|
|||
|
||||
```json
|
||||
{
|
||||
"id": 3,
|
||||
"id": "3",
|
||||
"name": "Owner",
|
||||
"color": "#ff3838",
|
||||
"permissions": 1048575,
|
||||
"permissions": "1048575",
|
||||
"highlighted": true
|
||||
}
|
||||
```
|
||||
|
@ -29,7 +29,7 @@ aliases: [
|
|||
### `id` {#id}
|
||||
|
||||
**Description:** The ID of the Role in the database.\
|
||||
**Type:** Integer\
|
||||
**Type:** String\
|
||||
**Version history:**\
|
||||
4.0.0 - added
|
||||
|
||||
|
@ -50,7 +50,7 @@ aliases: [
|
|||
### `permissions` {#permissions}
|
||||
|
||||
**Description:** A bitmask that represents the sum of all permissions granted to the role.\
|
||||
**Type:** Integer\
|
||||
**Type:** String\
|
||||
**Version history:**\
|
||||
4.0.0 - added
|
||||
|
||||
|
@ -127,4 +127,4 @@ To determine the permissions available to a certain role, convert the `permissio
|
|||
|
||||
## See also
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}
|
||||
|
|
Loading…
Reference in New Issue