Created
August 4, 2017 10:41
-
-
Save qwersk/ecf62faf81d97b25868a4266cc294d0c to your computer and use it in GitHub Desktop.
Check if user is admin #joomla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = JFactory::getUser(); | |
$isroot = $user->authorise('core.admin'); | |
if($isroot){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment