Examples: IsPublicReader property (NotesACLEntry - LotusScript®)

This script checks to see if the particular entry has read access to this database.

Sub Queryopen(Source As Notesuidocument, _
Mode As Integer, Isnewdoc As Variant, _
Continue As Variant)
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim acl As NotesACL
  Dim entry As NotesACLEntry
  Set db = session.CurrentDatabase
  Set acl = db.acl
  Set entry = acl.GetEntry("Mary Bugs/East/ACME")
  If entry.IsPublicReader Then
    Messagebox entry.Name & " is a public reader."
  Else
    Messagebox entry.Name & " is not a public reader"
  End If
End Sub