CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Posts
    25

    What is the best way to approach this

    Lets say I have a group of employess. In this group of employees there are 3 access levels.

    Access Level 1 can do basic functions no access, Level 2 basic functions plus secret access, Level 3 all functions plus top secret access

    What is the best way to design definitions based on this? So that anywhere in the program I can call up the access level for the employee using the program and check his/her level and all functions they are allowed to use.


    3 separate classes, interfaces, else?
    Last edited by codeguy03; July 25th, 2011 at 08:43 AM.

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: What is the best way to approach this

    I would use Roles class for checking the access level and own implementation of RoleProvider, or choose one of framework's implemetations.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured