In a page I’m hiding two paragraphs with formula language (to create two language interface):!@IsMember(“[EN]”;@UserRoles)
Other one: !@IsMember(“[LT]”;@UserRoles).
Then i put two buttons which one enables EN role, and disables LT role for default user, other one disables EN, enables LT for default user. here’s the code:
Sub Initialize
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( "-Default-" )
Call entry.DisableRole( "LT" )
Call entry.EnableRole( "EN" )
Call acl.Save
End Sub
but when i preview the page in explorer, roles don’t change, and language is the same as in the beginging. What is the problem? Is there any problem in the agent?