1
bronze
Userinfo for some groups
  • 2005/1/29 16:35

  • bronze

  • Friend of XOOPS

  • Posts: 3

  • Since: 2002/2/6 1


How to allow only some group of users to see users profiles?

2
bronze
Re: Userinfo for some groups
  • 2005/1/30 0:23

  • bronze

  • Friend of XOOPS

  • Posts: 3

  • Since: 2002/2/6 1


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?

Login

Who's Online

343 user(s) are online (236 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits