Last active
November 4, 2016 20:10
-
-
Save 33mhz/11a57256c8fc930869b577937af86908 to your computer and use it in GitHub Desktop.
ACL example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
owner
is on the channel itself, as it has wider implications than just ACL (it's a feature of the channel).public
is only onread
as it's only applicable there.any_user
is only applicable toread
andwrite
.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
anddeleted_by={user_id}
.