Changeset 1390 for trunk


Ignore:
Timestamp:
05/28/19 13:47:52 (5 years ago)
Author:
bln4
Message:

Added setting for the default encryption permission. When not specifying the group or other levels of permission (eg EncPermission: 4) then you get the default.

Location:
trunk/src/org/expeditee
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/encryption/items/EncryptionPermissionTriple.java

    r1374 r1390  
    44
    55import org.expeditee.settings.UserSettings;
     6import org.expeditee.settings.encryption.EncryptionDefaults;
    67
    78public class EncryptionPermissionTriple {
     
    6465       
    6566        public static EncryptionPermissionTriple convertString(String permissionCode) {
    66                 return new EncryptionPermissionTriple(permissionCode, UserAppliedEncryptionPermission.none);
     67                UserAppliedEncryptionPermission defaultPermission = UserAppliedEncryptionPermission.values()[EncryptionDefaults.DefaultEncryptionPermission.get()];
     68                return new EncryptionPermissionTriple(permissionCode, defaultPermission);
    6769        }
    6870       
Note: See TracChangeset for help on using the changeset viewer.