user::auth()
Return an authorization object for this user, which can be used to determine user authorizations.
Prototype
auth auth()
Return
An auth object that can be used to access the user's authorizations.
Example
$user->auth()->is_authorized('com_example_blog::CanPost');