XenVn - All In One Tools Bug

XenVn - All In One Tools Bug

romrazorVerified member

Active Member
Vip Member
Reputation: 3%
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 ?
 
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')
 
It works fine for both threads and resources.
You can test it at:
https://demo.xenvn.com/main-forum.f2/

Seems dont work on threads, have this option enabled, no effect

Screenshot_2.webp
 
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