modules/admin/models/User.php
/**
     * Check logged in user are admin or not.
     * @return boolean
     */
Check logged in user are admin or not.
@return boolean
Check logged in user are admin or not . @return boolean
public function isAdmin()
    {
        $role = $this->user_type;
        if ($role == self::USER_TYPE_ADMIN) {
            return true;
        }
        return false;
    }
public function isAdmin ( ) { $ role = $ this -> user_type ; if ( $ role == self :: USER_TYPE_ADMIN ) { return true ; } return false ; }
Check logged in user are admin or not.
Check logged in user are admin or not .