Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to control permissions?
Message
 
À
20/06/1998 10:33:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00110231
Message ID:
00110235
Vues:
23
Hi Juan,

I understand that what you are looking for is how to go around setting a security for the entire application depending on which user has logged in.

Its actually a very big question and lots of articles have been written in magazines and there are numerous approaches as well.

>I can control menu access permissions using tables with fields like c_user_code, c_menu_code, l_access (F, T), etc.
The easist way to handle security on menus is to modify the GenMenu.Prg so that it calls a function in your application before adding any menu bar. This way depending on the user who is logged in the function can return a true/flase and the menu bar would be added if true is returned.

>How can i define access to objects inside the forms like pages, grids, buttons, etc.?

In this case one approach would be to keep a track of the objects which undergo security in a seperate table. Your base objects could call a function with their full path as a parameter and this function would control that object, such as visibity, enabled etc.

BTW, Much more thinking is required so have a look at all possible approaches and select one which best fits with your app.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform