implemented a way to filter out roles that can't be assigned to permission, and disable permissions that are above the current power level of the user.

This commit is contained in:
Mauro Romito
2025-12-18 18:43:19 +01:00
committed by Mauro
parent f2fc164e2b
commit 88cd816392
18 changed files with 197 additions and 90 deletions
@@ -30,6 +30,10 @@ enum RoomPowerLevel: Hashable, Comparable {
case .value(let value): .value(value: Int64(value))
}
}
var role: RoomRole {
RoomRole(powerLevel: self)
}
}
extension PowerLevel {