Pinku

Pinku

  • 1.4k
  • 302
  • 45.2k

What is wrong in this code

May 29 2019 11:36 PM
What is wrong in this code, my manager asking what if function failed. what I have missed here.its in vb.net. :(
 
Private Function IsListedUser() As Boolean
If Not String.IsNullOrEmpty(MyNeo.SessionData.Accessor.CurrentAccountDID) Then
If (Not String.IsNullOrEmpty(MyNeo.SessionData.CBSessionUser.UserDID) AndAlso SettingControl.GetString("sUserDIDPreferenceUsers").Contains(MyNeo.SessionData.CBSessionUser.UserDID)) OrElse _
(SettingControl.GetBoolean("bHideWhiteListedUserWS", False) AndAlso IsAccountWhiteListed(MyNeo.SessionData.Accessor.CurrentAccountDID)) Then
Return True
End If
End If
End Function

Answers (1)