Form security-Access Permit (OpenInsight Specific)
At 23 JUL 1998 10:08:32AM Steve C. wrote:
In my runtime system. OI3.6.1, I have a Form (SALARY) which has
the users listed in Access Permit I want to allow access,
not $PUBLIC.
I have a button on another form accessible to numerous users
which has a
click event that calls the SALARY form with the code in the script
"retValue=REPOSITORY('EXECUTE','SYSPROG*OIWINSALARY',S_S_N)" It seems as if everybody can press the button and the SALARY form comes up…. shouldn't the Form security "Access Permit" prohibit that??? Steve C. </QUOTE> —- === At 23 JUL 1998 11:16AM Carl Pates wrote: === <QUOTE>Steve, I believe these permission settings are only applicable to window design, not execution. Denying users access to forms is something you will have to determine at runtime. However, you could still use the permission setting to determine this by checking it before you launch the window.. eg Declare Function Repository Permitted=FALSE$ PermittedList=Repository( "GETACCESSPERMIT", "SYSPROG*OIWINSYSKNOWLEDGE" )
Locate "$PUBLIC" In PermittedList Using @Fm Setting Something Then
Permitted=TRUE$End Else
Locate @UserName In PermittedList Using @Fm Setting Something ThenPermitted=TRUE$EndIf Permitted Then
**Launch window etcEnd
End
Carl Pates
Sprezzatura Ltd