JAccess::check

Method to check if a user is authorised to perform an action, optionally on an asset.