Secure Menu Items Based on User

Posted by Mike Wills on Stack Overflow See other posts from Stack Overflow or by Mike Wills
Published on 2010-06-11T18:49:50Z Indexed on 2010/06/11 18:52 UTC
Read the original article Hit count: 110

Filed under:
|
|

On this winform application I am writing, I want to secure one menu item from most users. It runs a month-end and cannot be easily backed out if accidentally run. The menu option opens up a window to prompt the user for some information before processing. I don't care where exactly I do the check, but I want to be sure only certain users can run this function.

A Google search (on my question title above) didn't turn up anything obvious. Can anyone point me in a direction to pick up who is signed into Windows and how to check if they are authorized?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about security