By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

A way to set levels of access to users

P: n/a
Hi all,

I have this table on a database:

Table: user

coduser | username | password | securitylevel
1 | fcumana |<SHA1pass>| 0123456789qwe

where "securitylevel" is a string where the presence of each character
is a permited key for running certain functions.

For example:
def function1():
print "This is the function 'function1'"

....and/or other functions

Because securitylevel=6 exists in securitylevel in the database, the
user running it is allowed to access.

The lack here is that if there's a lot of functions and users, and I
want to enable certain users to access certain functions, then, it will
get confusing for maintain it.

Any help?


Oct 14 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.