Merge pull request #20641 from ramonlsouza/issue-20029

fix: Enable download of the presentation not possible for temporarily presenters
This commit is contained in:
Gustavo Trott 2024-07-05 13:20:01 -03:00 committed by GitHub
commit 65ebaecc9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,7 @@ trait MakePresentationDownloadReqMsgHdlr extends RightsManagementTrait {
&& m.body.fileStateType == "Converted") { && m.body.fileStateType == "Converted") {
val reason = "Converted presentation download disabled for this meeting. (PDF format)" val reason = "Converted presentation download disabled for this meeting. (PDF format)"
PermissionCheck.ejectUserForFailedPermission(meetingId, userId, reason, bus.outGW, liveMeeting) PermissionCheck.ejectUserForFailedPermission(meetingId, userId, reason, bus.outGW, liveMeeting)
} else if (permissionFailed(PermissionCheck.MOD_LEVEL, PermissionCheck.VIEWER_LEVEL, liveMeeting.users2x, userId)) { } else if (permissionFailed(PermissionCheck.GUEST_LEVEL, PermissionCheck.PRESENTER_LEVEL, liveMeeting.users2x, userId)) {
val reason = "No permission to download presentation." val reason = "No permission to download presentation."
PermissionCheck.ejectUserForFailedPermission(meetingId, userId, reason, bus.outGW, liveMeeting) PermissionCheck.ejectUserForFailedPermission(meetingId, userId, reason, bus.outGW, liveMeeting)
} else if (currentPres.isEmpty) { } else if (currentPres.isEmpty) {