canDo('chat.chat.report.povote')) { return true; } return false; } /** * Determine if the given user can approve the given chat. * * @param UserPolicyInterface $authUser * * @return bool */ public function report(UserPolicyInterface $authUser) { if ($authUser->canDo('chat.chat.report')) { return true; } return false; } /** * Determine if the given user can approve the given chat. * * @param UserPolicyInterface $authUser * * @return bool */ public function download(UserPolicyInterface $authUser) { if ($authUser->canDo('chat.chat.report.download')) { return true; } return false; } }