Skip to content

Instantly share code, notes, and snippets.

@33mhz
Last active November 4, 2016 20:10
Show Gist options
  • Save 33mhz/11a57256c8fc930869b577937af86908 to your computer and use it in GitHub Desktop.
Save 33mhz/11a57256c8fc930869b577937af86908 to your computer and use it in GitHub Desktop.
ACL example
"owner":{},
"acl": {
"full": {
"immutable": true,
"user_ids": [1,2,4],
"you": false
},
"write": {
"immutable": false,
"user_ids": [8,"@user"],
"any_user": false,
"you": true
},
"read": {
"immutable": false,
"user_ids": [],
"any_user": true,
"public": false,
"you": true
}
},
@33mhz
Copy link
Author

33mhz commented Nov 2, 2016

owner is on the channel itself, as it has wider implications than just ACL (it's a feature of the channel).
public is only on read as it's only applicable there.
any_user is only applicable to read and write.
The groups can have separate immutability, so it is on each one.

If a full access user deletes a message, that message will have is_deleted=true and deleted_by={user_id}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment