1
Shortcuts bypass denied permissions
Problem reported by Alex W. - 4/24/2025 at 12:11 AM
Resolved
Hi, 
I encountered a bug where I set the denied permissions in code.
documentViewer.DeniedPermissions = DocumentViewerPermissions.DownloadAsPdf Or _
                                   DocumentViewerPermissions.Download Or _
                                   DocumentViewerPermissions.Print
The 'Download', 'Save', and 'Print' buttons are hidden. 

However, the shortcuts bypass the denied permissions, as it still downloads the PDF when the shortcut Ctrl + S is pressed, and the print dialog shows when Ctrl + P is pressed. 

I tried to cancel the event inside the client event function, but it didn't work.
e.preventDefault()

Environment: 
    .Net Framework 4.7.2
Packages:
    GleamTech.Common 6.5.0
    GleamTech.DocumentUltimate 7.6.0

P.S.: I found this in the version history that might be related to this problem, even though it is long time ago.


Thanks in advance,
Alex



1 Reply

Reply to Thread
0
Cem Alacayir Replied
Employee Post Marked As Resolution
Thanks for the report. Yes, the UI was changed several times since that old version so the issue resurfaced.

This is now fixed:

Version 7.6.1 - April 25, 2025

  • Fixed: Keyboard shortcuts were not respecting the denied permissions. Especially CTRL + P for print and CTRL + S for save.

  • Fixed: Pages outline color when focused.

Reply to Thread

Enter the verification text