* update logic around permissions and sanitization * add test * add comments * fix test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
* update logic around permissions and sanitization * add test * add comments * fix test --------- Co-authored-by: Mattermost Build <build@mattermost.com>