src/Http/Requests/MessageRequest.php
protected function canAccess()
    {
        if ($this->formRequest->user()->isAdmin() || $this->formRequest->user()->isUser()) {
            return true;
        }

        return $this->formRequest->user()->canDo('message.message.view');
    }
protected function canAccess()
    {
        if ($this->formRequest->user()->isAdmin() || $this->formRequest->user()->isUser()) {
            return true;
        }

        return $this->formRequest->user()->canDo('message.message.view');
    }
protected function canAccess ( ) { if ( $ this -> formRequest -> user ( ) -> isAdmin ( ) || $ this -> formRequest -> user ( ) -> isUser ( ) ) { return true ; } return $ this -> formRequest -> user ( ) -> canDo ( 'message.message.view' ) ; }
Check whether the user can access the module.

@return bool
Check whether the user can access the module .