Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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  Then
    Permitted=TRUE$
 End

If Permitted Then

  • **Launch window etc

End

End

Carl Pates

Sprezzatura Ltd

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/43c02d732144a2448525664a004daf80.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1