2
I used a module rights for permissions:
$uid = intval($HTTP_GET_VARS['uid']);
if($xoopsUser){
$groups = $xoopsUser->getGroups();
} else {
$groups = XOOPS_GROUP_ANONYMOUS;
}
$module_id = 10;
$gperm_handler =& xoops_gethandler('groupperm');
if($gperm_handler->checkRight($perm_name, _SEC_MODIFY_SERVICE, $groups, $module_id)){
}
elseif($xoopsUser->getVar('uid')==$uid){
}
else {
redirect_header(XOOPS_URL."/",3,_NOPERM);
}
Is possible a normal solution without using module permissions?