Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UserInformation user = account.RepresentUser;
- // if the user is a service user not represented as an entry in UserInformationSet, the user performing the operation
- // through the portal is used instead
- if (user == null || account.AccountName.StartsWith("s_inf", StringComparison.OrdinalIgnoreCase))
- {
- user = portalUser;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement