Preventing the standard user from seeing to much . . .

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CodeNoobster
    New Member
    • Sep 2013
    • 52

    Preventing the standard user from seeing to much . . .

    Hey everyone

    I am currently developing a application will contain sensitive information and will be using a log in system for the app to distinguish between standard users and administrators.

    i would like to make certain options and controls inaccessible for standard users.

    The attachment below depicts this scenario.
    As you can see some options in the menu are gray and cannot be selected

    All that i ask is for some to give me a guideline on how to go about doing this or better yet, give me a URL for a very informative article

    thanks in Advance
    Attached Files
  • Luk3r
    Contributor
    • Jan 2014
    • 300

    #2
    It really depends on the method you're using to define the person logging on as a standard user or admin. Are you using LDAP authentication? If so, then the answer is right in front of you. Are you using a database with a table that contains user information? Do you admins all have different accounts or do they login simply using "Admin"? No matter the manner, on your form load you will want to check their username and assign permissions based off of that.

    Comment

    • CodeNoobster
      New Member
      • Sep 2013
      • 52

      #3
      hmmmmm . . . thanks Luk3r, that helps

      also did some digging of my own after i asked this question, guess I was impatient lol.

      Nope, not using LDAP

      thanks again

      Comment

      • Corwin Moyne
        New Member
        • Feb 2012
        • 37

        #4
        I did exactly this in a Java Desktop application this week. I have user details in a table on a database, ie username, password and user type. The user type is either admin or standard. When the user logs in, the application checks the username and password and if they exist it returns the user type. If the user type is admin, a hidden button is now available on the window they login to allowing them to open a another window where the admin only data can be viewed/edited. If it returns that they are a standard user then the button remains hidden meaning they can go no further.

        Comment

        • CodeNoobster
          New Member
          • Sep 2013
          • 52

          #5
          You know what corwin, after reading Luk3r's response, i had done some research and looked at making some controls disabled, but my design is a lot more complicated than what you had done.

          Lol thanks man, I think the users would appreciate something like that rather than my original design because they are not computer literate at all.

          Comment

          Working...