#405 allow user access permissions in encryption to be bigger than int

This commit is contained in:
Eliot Jones
2022-01-10 21:00:33 +00:00
parent a538aaf0de
commit 124f54119e
2 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,8 @@
if (encryptionDictionary.TryGetOptionalTokenDirect(NameToken.P, tokenScanner, out NumericToken accessToken)) if (encryptionDictionary.TryGetOptionalTokenDirect(NameToken.P, tokenScanner, out NumericToken accessToken))
{ {
access = (UserAccessPermissions) accessToken.Int; // This can be bigger than an integer.
access = (UserAccessPermissions) accessToken.Long;
} }
byte[] userEncryptionBytes = null, ownerEncryptionBytes = null; byte[] userEncryptionBytes = null, ownerEncryptionBytes = null;

View File

@@ -3,7 +3,7 @@
using System; using System;
[Flags] [Flags]
internal enum UserAccessPermissions internal enum UserAccessPermissions : long
{ {
/// <summary> /// <summary>
/// (Revision 2) Print the document. /// (Revision 2) Print the document.