I had to so something similar for a client where they wanted every menu option limited to certain users. My problem was that, for example, "Client maintenance" was on the menu, but you could also get to the same functionality from within other applications. e.g. The user who was prevented from Client maintenance, did have access to Creating an invoice, and if he entered an incorrect client code, it would pop up Client maintenance in order to choose an existing client, or add a new client.
In the end I created a table of users and a table of programs and every time a user clicked an option from the menu or from within any application, it would check if the user had the right/privilege to do so. It enabled me to do lots of other things: Log who was doing what, log who did what/when, and who was trying to do things when they weren't allowed to, etc etc Sytze On Sat, Aug 1, 2009 at 8:00 AM, Richard Kaye <[email protected]> wrote: > If you use Andrew Ross McNeil's genmenux, you can actually remove menu > items if the user does not have sufficient permission to access a particular > application function. Instead of using the skip for, you put an expression > in the comment for the menu item. For example, let's say you have a menu > option to manage your users but only admins should be able to access it. In > the comment, you would put something like this: > > *:IF MyPermissionFunction([userID]) > > If your MyPermissionFunction does not return the appropriate value > (typically boolean), the menu item is removed before the menu is even > displayed. The magic is the *: as far as genmenux is concerned. There are a > whole bunch of directives in addition to the *:IF. > > rk > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Kurt Wendt > Sent: Friday, July 31, 2009 10:46 AM > To: [email protected] > Subject: A Menu Utility to Limit Access... > > Hello folks, > > > Now - within the Menu Designer you have the Options for each menu item - > and there is the "Skip For" option within the Prompt Options. As of > right now I am calling a procedure from the Skip For option to tell > FoxPro when to Skip (i.e. Not Allow access to a particular menu option). > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

