AnsweredAssumed Answered

$GLOBALS['current_user']->isAdmin()  not working for regular user

Question asked by sugardeveloper11 on Oct 26, 2015
Latest reply on Oct 26, 2015 by sugardeveloper11
Hi there,

I am trying to change a view in the custom folder so that some button will not show for regular user.

I use the method
if($GLOBALS['current_user']->isAdmin()) 

However it does not return as FALSE for regular user.

BTW, I have dump out the $GLOBALS['current_user'] to a file, the account always appeared to be the adminstrator account.

Please help, thanks!

Outcomes