This topic is locked

Help - Disable Search & Show All Button

5/19/2011 2:44:09 PM
PHPRunner General questions
cyberjas2001 author

Depending on the user I wanna disable Search option & Show All Button as well
I have this code on my List: Before Display


if ($_SESSION["GroupID"] == 'SuperAdmin' || $_SESSION["GroupID"] == 'Admin')

{

$xt->assign("showall_fieldblock");

$xt->assign("search_fieldblock");

}


But it doesn't work.

Any ideas?

Thanks!

J
Jane 5/20/2011

Hi,
$_SESSION["GroupID"] is defined for static permissions only. You need to select groupID from security tables manually if you use dynamic permissions on the Securitytab.

If it doesn't help publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.