Re: application security for users

From: steve (me_at_me.com)
Date: 05/01/04


Date: Sat, 1 May 2004 07:05:45 +0800

On Fri, 30 Apr 2004 19:59:51 +0800, FISH wrote
(in article <dbc5020.0404300359.741bf1c5@posting.google.com>):

> steve <me@me.com> wrote in message
> news:<0001HW.BCB792E70002E0D7F03055B0@news.newsguy.com>...
> [snipped...]
>> if i want to limit certain users to certain actions (add/delete/view),
>> what
>> is the best most transparent way to do this.
>>
>> is it to extend the button/menu class, to add a security check?
>>
>> For example, when the user selects the button/menu, the name of the
>> button/menu & the user name are passed to validate the security, if no go
>> the routine swallows the event, if go , it passes the event thru?
>
> You don't need to extend buttons or menus to do this. Just implement the
> checking functionality in the event handler for that Action.
>
> You might also like to disable the secured buttons and menu items, so
> they can never be activated to begin with. This will provide a visual
> clue to the user that the function is unavailable. You should not,
> however, use this as an alternative to the checks in the event handler.
> (Belt and braces!)
>
>
> -FISH- ><>

thanks fish
seems like a good place to start.



Relevant Pages

  • Re: CommandBarButton not getting deleted in MS Word
    ... Assuming that the buttons are same and only functionality differs, ... I am actually developing the plugin for both Word and Outlook applications. ... overwriting the click event handler for Outlook. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: OOP style
    ... > The root of all evil, if not avoided, is putting functionality>> into event handler methods of forms. ... procedure TForm1.AlphaNumericOnlyKeyPress(Sender: TObject; var Key: ...
    (comp.lang.pascal.delphi.misc)
  • Re: Executing An External Forms Event Procedure
    ... Because an event handler is designed to respond to a specific event raised from an object, calling the function directly has nothing ... as mentioned earlier a separate method should be employed, ... can remain in the event handler while the generic functionality can be shifted to the new method. ...
    (microsoft.public.vb.general.discussion)
  • Re: Limit Document Versions
    ... You cannot prune versions ootb. ... But you could write an event handler on the ... document library to deliver this functionality pretty easily. ... Nige. ...
    (microsoft.public.sharepoint.portalserver)
  • RE: Attach List event handler to a custom list
    ... Ted is correct that the event handlers are only usable in Document Libraries, ... Can we attach an event handler to the custom list in order to do ... >> achieve the same functionality? ...
    (microsoft.public.sharepoint.portalserver.development)