Bonjour,Ceci est un début à modifier

im workspace As New NotesUIWorkspaceDim session As New NotesSessionDim uidoc As NotesUIDocumentDim acl As NotesACL Dim entry As NotesACLEntrySet db = session.CurrentDatabaseSet acl = db.ACLSet entry = acl.GetEntry( session.CommonUserName )If entry Is Nothing Then Set entry = acl.GetEntry( session.UserName )End IfIf entry Is Nothing Then Messagebox _ "No entry for " & session.CommonUserName & _ " or " & session.UserName,, "No entry" Exit SubEnd IfIf entry.IsRoleEnabled( "[Supervisor]" ) Then Set uidoc = workspace.ComposeDocument( "", "approval" )Else Set uidoc = workspace.ComposeDocument( "", "request" )End If[%sig%]