We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6bb4bd commit 7a73c05Copy full SHA for 7a73c05
eventauth.go
@@ -375,12 +375,13 @@ func (a *allowerContext) userPowerLevel(userID spec.SenderID) int64 {
375
}
376
if a.powerLevelsEvent == nil {
377
if userID == a.createEvent.SenderID() {
378
- return 100
+ // FIXME: this is awful but needs to match up with NewPowerLevelContentFromAuthEvents in eventcontent.go
379
+ // else you won't be able to override PLs when creating rooms.
380
+ return CreatorPowerLevel - 1
381
382
return 0
383
384
return a.powerLevels.UserLevel(userID)
-
385
386
387
// update updates the auth event provider with new event contents.
0 commit comments