From: Matthew M. <ma...@tu...> - 2002-10-30 14:28:44
|
Many of you may know that currently you need to create a table to store your users sub permissions. I am thinking it might be a good idea to recode this. Users currently has a special table for module rights. Look under Setting Module Settings (ick, bad title now that I look at it). http://res1.stddev.appstate.edu/horde/chora/co.php/phpws_core/mod/users/docs/devdoc.txt?r=1.3 Anyway, I think I could use this table to store the module rights. You would still need to create your module rights file to tell users what rights you will hook into. When a user's permissions are modified, Users would grab this file and show the sub permissions like it always does. Any permission would be stored in that table and would be loaded with the user. This would eliminate module's having to keep track of users and it would prevent the module table from having to store this data. The downside? I would have to code it meaning some down time. I am not sure how long it would take to convert. Let me know if you think this is the direction we should go. Matt Matthew McNaney Internet Systems Architect Electronic Student Services Email: ma...@tu... URL: http://phpwebsite.appstate.edu Phone: 828-262-6493 ICQ: 141057403 |
From: Richard S. <ri...@ri...> - 2003-03-16 22:41:16
|
I have my module installed and it's user rights that you can set when=20 administering users. My question is, how do I check a specific right=20 that is assigned to the current user logged in? I used=20 $_SESSION['OBJ_user']->getUserVar("write",=20 $_SESSION['OBJ_user']->user_id, "my_module")... Am I using the wrong=20 function? Thanks Richard S.=00= |
From: Matthew M. <ma...@tu...> - 2003-03-17 13:25:01
|
> I have my module installed and it's user rights that you can set when > administering users. My question is, how do I check a specific right > that is assigned to the current user logged in? I used > $_SESSION['OBJ_user']->getUserVar("write", > $_SESSION['OBJ_user']->user_id, "my_module")... Am I using the wrong > function? For rights: if ($_SESSION['OBJ_user']->allow_access($moduleName, $subRight)) allowStuff(); The $subRight would need to be set by the module_rights.php file for your module. This might need updating but here are the docs: http://res1.stddev.appstate.edu/horde/chora/co.php/users/docs/devdoc.txt?r=1.5 Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 phpwebsite.appstate.edu ess.appstate.edu |
From: Adam M. <ad...@tu...> - 2002-10-30 16:39:54
|
I like this idea but I'm thinking we should tie up some loose ends in other modules before you dive into this. That's just me though...and you know me :) Adam > Many of you may know that currently you need to create a table to store > your users sub permissions. > > I am thinking it might be a good idea to recode this. > > Users currently has a special table for module rights. > Look under Setting Module Settings (ick, bad title now that I look at > it). > > http://res1.stddev.appstate.edu/horde/chora/co.php/phpws_core/mod/users/docs/devdoc.txt?r=1.3 > > Anyway, I think I could use this table to store the module rights. You > would still need to create your module rights file to tell users what > rights you will hook into. When a user's permissions are modified, Users > would grab this file and show the sub permissions like it always does. > Any permission would be stored in that table and would be loaded with > the user. > > This would eliminate module's having to keep track of users and it would > prevent the module table from having to store this data. > > The downside? I would have to code it meaning some down time. I am not > sure how long it would take to convert. > > Let me know if you think this is the direction we should go. > > Matt > > > Matthew McNaney > Internet Systems Architect > Electronic Student Services > Email: ma...@tu... > URL: http://phpwebsite.appstate.edu > Phone: 828-262-6493 > ICQ: 141057403 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --------------------------------- Adam Morton Developer - Electronic Student Services http://phpwebsite.appstate.edu Founder - ASU Linux Users Group http://lug.appstate.edu |