Bitte schön:
Dim s As New NotesSession
Dim userName As New NotesName(s.UserName)
Dim db As NotesDatabase
Dim acl As NotesACL
Dim entry As NotesACLEntry
Set db = s.CurrentDatabase
Set acl = db.ACL
user2 = username.Abbreviated
Set entry = acl.GetEntry(user2)
If Not entry Is Nothing Then
If Entry.IsRoleEnabled("[admin]" ) Then
continue = True
Else
Messagebox "Sie dürfen keine Dokumente löschen. ", 0, "Fehler"
continue = False
End If
End If