473,324 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Preventing the standard user from seeing to much . . .

CodeNoobster
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 Images
File Type: png Option.png (3.6 KB, 126 views)
Jul 2 '14 #1

✓ answered by Luk3r

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.

4 1305
Luk3r
300 256MB
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.
Jul 2 '14 #2
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
Jul 2 '14 #3
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.
Jul 4 '14 #4
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.
Jul 4 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Karthik | last post by:
Hi, I have a website running on ASP.Net on IIS 6.0. This website has more than 10000 users login everyday. At times the users login with the same user name and password more than once at the...
13
by: Maroon | last post by:
Hi, I want to write a standard java user defined function, like this example:- select db_fun("roll"), roll from student; **db_fun() will work for all tables of the all databse here db_fun is...
4
by: Trevor Williams | last post by:
I have a split database which has some rudimentary security in place which prevents unauthorised users from double-clicking the data file and seeing anything worthwhile. If they do this a popup...
0
by: Neil Arnold | last post by:
Hi, I've an app which has a datagrid embedded, but whenever the user navigates to the last row & presses the down arrow (or clicks with the mouse just below the last row), I see an additional...
1
by: Stimp | last post by:
I have an input field, which will ultimately be stored in a database and the contents of which will be output on screen at some stage. ASP.NET has built-in functionality to prevent users inputing...
3
by: mankolele | last post by:
Hi all. I am having a tough time trying to find a way I can use to make restrictions to drop dows for dates, like the following dates are invalid and cannot be allowed to select them, April...
0
by: =?Utf-8?B?RWl0YW4=?= | last post by:
Hello, I created a Modal form (WinForm). I would like to prevent the user from moving the form around on the screen. How would I do that? Thanks, EitanB
2
vdraceil
by: vdraceil | last post by:
Is it possible to find whether the current system date is changed or not with VB6.0 code?All i want to do is to prohibit the user from changing the system time.How can i do that?
2
by: brendan_gallagher_2001 | last post by:
HI I am developog an ASP.net site (using vb.net 1.1) which will be accessed by a number of different office locations, where certain users will be assigned a authoriser profile, and others will...
3
by: josephsimonbenn | last post by:
Can anyone provide me with a code whereby i can prevent my users from exiting the application through normal means. I want users to only quit the application through a command button i have put on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.