ValidateAddDelegate method
void
ValidateAddDelegate()
Implementation
void ValidateAddDelegate() {
// If any folder permission is Custom, throw
//
if (_delegateFolderPermissions.values.any(
(permission) =>
permission.PermissionLevel == DelegateFolderPermissionLevel.Custom,
)) {
throw ServiceValidationException(
"Strings.CannotSetDelegateFolderPermissionLevelToCustom",
);
}
}