Exemplo n.º 1
0
        public static PERMISSION_TYPE GetPermissionType(PermissionCategory mask)
        {
            var boolTypes = new PermissionCategory[] { PermissionCategory.SPARC_EXPLORER, PermissionCategory.SPIN_EXPLORER, PermissionCategory.IMPORT_MATERIAL, PermissionCategory.IMPORT_REFERENCES, PermissionCategory.IMPORT_DELTA };

            if (boolTypes.Contains(mask))
            {
                return(PERMISSION_TYPE.ALLOWDISALLOW);
            }

            return(PERMISSION_TYPE.RWDIU);
        }
Exemplo n.º 2
0
Arquivo: User.cs Projeto: kehh/biolink
        public static PERMISSION_TYPE GetPermissionType(PermissionCategory mask)
        {
            var boolTypes = new PermissionCategory[] { PermissionCategory.SPARC_EXPLORER,PermissionCategory.SPIN_EXPLORER, PermissionCategory.IMPORT_MATERIAL, PermissionCategory.IMPORT_REFERENCES, PermissionCategory.IMPORT_DELTA  };

            if (boolTypes.Contains(mask)) {
                return PERMISSION_TYPE.ALLOWDISALLOW;
            }

            return PERMISSION_TYPE.RWDIU;
        }