Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security Problem
Message
From
17/09/1998 01:20:33
 
 
To
17/09/1998 00:30:39
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00137622
Message ID:
00137651
Views:
20
>>Form that is accessible to users with different security Rights.
>>How to control field level security on your forms?
>I would say, create a function that check for access rights in the object's WHEN method. Perhaps something like...
>
>FUNCTION CHK_ACCESS
>PARAMETERS table_field
>RETURN(SEEK(login_id+table_field,'SECURITY',login_field) and SECURITY.ACCESS)
>
>where you have a table called SECURITY that has fields for login_id, table_field (i.e. "anytable.fieldname"), and access (.t. or .f.) indexed on login_id+table_field TAG login_field
>
>In your WHEN method
>RETURN(CHK_ACCESS(THIS.datasource))

I am using SQL 6.5 as backend and VFP 5.0 as frontend.
If A user does not have a select right on one of the fields, an error will ocur when trying to open the remote view.
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform