mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Fix widget creation permission check
Signed-off-by: Marinus Enzinger <marinus@enzingerm.de>
This commit is contained in:
parent
6486b9e5cd
commit
822c47d15f
2 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ Bugfix 🐛:
|
||||||
- Long message cannot be sent/takes infinite time & blocks other messages #1397
|
- Long message cannot be sent/takes infinite time & blocks other messages #1397
|
||||||
- User Verification in DM not working
|
- User Verification in DM not working
|
||||||
- Manual import of Megolm keys does back up the imported keys
|
- Manual import of Megolm keys does back up the imported keys
|
||||||
|
- Fix incorrect permission check when creating widgets (#2137)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -202,6 +202,6 @@ internal class WidgetManager @Inject constructor(private val integrationManager:
|
||||||
stateKey = QueryStringValue.NoCondition
|
stateKey = QueryStringValue.NoCondition
|
||||||
)
|
)
|
||||||
val powerLevelsContent = powerLevelsEvent?.content?.toModel<PowerLevelsContent>() ?: return false
|
val powerLevelsContent = powerLevelsEvent?.content?.toModel<PowerLevelsContent>() ?: return false
|
||||||
return PowerLevelsHelper(powerLevelsContent).isUserAllowedToSend(userId, true, null)
|
return PowerLevelsHelper(powerLevelsContent).isUserAllowedToSend(userId, true, EventType.STATE_ROOM_WIDGET_LEGACY)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue