Returns whether or not a user has permission level 2
Location
users/helpers/users.php
Parameters
This function does not take any arguments
Returns
Data Type
Description of Returned Data
bool
Returns true if the user is an admin whether as the logged in user or if the user is cloaked from another user and is an admin. Otherwise, returns false.
Example
isAdmin()
Further Documentation:
Always refers to the logged in user.
This is primarily used to figure out if the logged in user is an admin
While they are cloaked into another user. In other words
If a user is Admin, but they are cloaked into a user with only basic "user"
level access, isAdmin will still return true