If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Module Management Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-11, 11:43
bharanidharanit bharanidharanit is offline
Registered User
 
Join Date: Nov 2008
Posts: 115
Module Management Help

Hi,
I am developing new application in php and mysql.
I want to build advanced module management system.
User who login must have rights to only his module,
Modules must be handle in dynamic for future entry in modules.
Any ideas for easily tracking this in mysql ?
Reply With Quote
  #2 (permalink)  
Old 04-04-11, 12:36
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
In its most simplest form, create a modules table (moduleid, modulename), a users table (userid, username) and a user_modules table (moduleid, userid). When someone logs in check that there is a record in the user_modules table corresponding to the module and the user. If one exists then they have access otherwise they do not.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 04-04-11, 12:40
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
effectively what you seem to want is something similar to a group permissions mode

so offhand I'd go with

usergroups:-
users: - a user is a member of a usergroup
modules:-
usergroupmodules:- details what usergroups are allowed to use which modules
optionally you could extend the model to take account of different roles within a usergroup permission

in your PHP scripts test to see if this user has the appropriate permission granted through their usergroup. you'd need to see if there is a permission for that usergroup.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On