if ( $user->has_role("admin") ) { # authorized for admin stuff... }