Skip to content

Commit

Permalink
Merge pull request #48 from Zarel/master
Browse files Browse the repository at this point in the history
Fix permission parsing for subrooms (#4939)
  • Loading branch information
FlamePrince-PS authored Oct 30, 2018
2 parents f6fd916 + a14301b commit 394829b
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 394829b

Please sign in to comment.