src/fursvp.domain/Authorization/ReadAuthorization/ReadAuthorizeMember.cs
/// <summary>
/// Finds any unauthorized content within the Member object and redacts it if the user is not authorized to view it.
/// </summary>
/// <param name="member">The member information being viewed.</param>
Finds any unauthorized content within the Member object and redacts it if the user is not authorized to view it.
Finds any unauthorized content within the Member object and redacts it if the user is not authorized to view it .
public void FilterUnauthorizedContent(T member)
        {
            if (member == null)
            {
                throw new ArgumentNullException(nameof(member));
            }
            var user = UserAccessor.User;
            if (member.EmailAddress != user?.EmailAddress)
            {
                member.EmailAddress = null;
            }
        }
public void FilterUnauthorizedContent ( T member ) { if ( member == null ) { throw new ArgumentNullException ( nameof ( member ) ) ; } var user = UserAccessor . User ; if ( member . EmailAddress != user ? . EmailAddress ) { member . EmailAddress = null ; } }
Finds any unauthorized content within the Member object and redacts it if the user is not authorized to view it.
Finds any unauthorized content within the Member object and redacts it if the user is not authorized to view it .
member
T
The member information being viewed.
The member information being viewed .