EasyDiscuss 4.0.19

Users

Here, you will learn on how to grab and manipulate user's data
  Advanced

Determining The User Is A Site Admin

EasySocial checks against the core.admin ACL rule in Joomla in determining if the user is a site administrator or not. To determine if the user is a site admin, you may use the codes below:

require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$my = ES::user();
// Returns boolean
if ($my->isSiteAdmin()) {
    // Display secret menu.
}

Supplied Arguments

NOTE: No argument needed.

public function isSiteAdmin()