keep previous >= pl limit

pull/21833/head
Bruno Windels 2019-02-22 11:53:07 +01:00
parent 63504fcc17
commit fe71c17bb7
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ export class RoomPermalinkCreator {
}, [null, 0]);
const [userId, powerLevel] = maxEntry;
// object wasn't empty, and max entry wasn't a demotion from the default
if (userId !== null && powerLevel > (content.users_default || 0)) {
if (userId !== null && powerLevel >= 50) {
this._highestPlUserId = userId;
return;
}