XenVn - All In One Tools Bug

XenVn - All In One Tools Bug

romrazorVerified member

Active Member
Vip Member
Reputation: 4%
Code:
You must log in to view
(4 lines)


Addon have some Bug, NFO Conten only for Usergroups viewable with download permission.
Unregistered cant view without download permission.

Any way to view without download permissions ?
 

Attachments

  • Test1.webp
    Test1.webp
    22.1 KB · Views: 82
Can't call it a bug!

If you want to bypass permissions. Do the following:
1. Open the file src\addons\XV\Entity\Post.php
find:
if ($attachmentId->canView() && $attachmentId->extension == 'nfo')
replaced by: if ($attachmentId->canView() || $attachmentId->extension == 'nfo')

2 Open the file src\addons\XV\Pub\Controller\Attachment.php
find:
} else if (!$attachment->canView($error))
replaced by: } else if (!$attachment->canView($error) && $attachment->extension != 'nfo')
 
works now, seems problems with login to user account (addon)

Nope was the Limit Thread / Resource Download.

Thanks not needed for download, seems realy dont work
 
Can't call it a bug!

If you want to bypass permissions. Do the following:
1. Open the file src\addons\XV\Entity\Post.php
find:
if ($attachmentId->canView() && $attachmentId->extension == 'nfo')
replaced by: if ($attachmentId->canView() || $attachmentId->extension == 'nfo')

2 Open the file src\addons\XV\Pub\Controller\Attachment.php
find:
} else if (!$attachment->canView($error))
replaced by: } else if (!$attachment->canView($error) && $attachment->extension != 'nfo')
seems this dont work anymore under 1.7.0
 
Top