public function getPermissionDeniedReason()
    {
        $result = '';

        if ($this->CanViewType == 'LoggedInUsers') {
            $result = _t('DMSDocument.PERMISSIONDENIEDREASON_LOGINREQUIRED', 'Please log in to view this document');
        }

        if ($this->CanViewType == 'OnlyTheseUsers') {
            $result = _t(
                'DMSDocument.PERMISSIONDENIEDREASON_NOTAUTHORISED',
                'You are not authorised to view this document'
            );
        }

        return $result;
    }
public function getPermissionDeniedReason()
    {
        $result = '';

        if ($this->CanViewType == 'LoggedInUsers') {
            $result = _t('DMSDocument.PERMISSIONDENIEDREASON_LOGINREQUIRED', 'Please log in to view this document');
        }

        if ($this->CanViewType == 'OnlyTheseUsers') {
            $result = _t(
                'DMSDocument.PERMISSIONDENIEDREASON_NOTAUTHORISED',
                'You are not authorised to view this document'
            );
        }

        return $result;
    }
public function getPermissionDeniedReason ( ) { $ result = '' ; if ( $ this -> CanViewType == 'LoggedInUsers' ) { $ result = _t ( 'DMSDocument.PERMISSIONDENIEDREASON_LOGINREQUIRED' , 'Please log in to view this document' ) ; } if ( $ this -> CanViewType == 'OnlyTheseUsers' ) { $ result = _t ( 'DMSDocument.PERMISSIONDENIEDREASON_NOTAUTHORISED' , 'You are not authorised to view this document' ) ; } return $ result ; }
Returns a reason as to why this document cannot be viewed.

@return string
Returns a reason as to why this document cannot be viewed .