Bug Fix: Bulk Generate Documents UserId Domain
Where no domain is provided, the primary domain should be assumed.
This commit is contained in:
@@ -69,9 +69,9 @@ namespace Disco.BI.Interop.Pdf
|
||||
if (!dataObjectId.Contains('\\'))
|
||||
dataObjectId = ActiveDirectory.Context.PrimaryDomain.NetBiosName + @"\" + dataObjectId;
|
||||
|
||||
DataObjects[idIndex] = UserService.GetUser(DataObjectsIds[idIndex], Database, true);
|
||||
DataObjects[idIndex] = UserService.GetUser(dataObjectId, Database, true);
|
||||
if (DataObjects[idIndex] == null)
|
||||
throw new Exception(string.Format("Unknown Username specified: {0}", DataObjectsIds[idIndex]));
|
||||
throw new Exception(string.Format("Unknown Username specified: {0}", dataObjectId));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user