fix(api) Allow revoked chat ussers to post in private guilds

This commit is contained in:
Blade Barringer
2016-10-04 17:49:19 -05:00
parent acee4bad80
commit 6d33acccf4
2 changed files with 38 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ api.postChat = {
let group = await Group.getGroup({user, groupId});
if (!group) throw new NotFound(res.t('groupNotFound'));
if (group.type !== 'party' && user.flags.chatRevoked) {
if (group.privacy !== 'private' && user.flags.chatRevoked) {
throw new NotFound('Your chat privileges have been revoked.');
}