Skip to content

Commit

Permalink
Fix permission parsing for subrooms (#4939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Kobayashi authored and Zarel committed Oct 30, 2018
1 parent 5d7d317 commit a14301b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class User {
targetUser = target;
}

if (room && room.auth) {
if (room && (room.auth || room.parent)) {
group = room.getAuth(this);
if (targetUser) targetGroup = room.getAuth(targetUser);
if (room.isPrivate === true && this.can('makeroom')) group = this.group;
Expand Down

0 comments on commit a14301b

Please sign in to comment.