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 |