XenVn - All In One Tools Bug

XenVn - All In One Tools Bug

romrazor

Well-Known Member

Vip Member
Reputation: 8%
Joined
26/3/22
Messages
65
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: 161
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')
 
Like or Reply to Download have only effect im Resource Manager ?

if not, dont work on threads
 
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
 
Admin and post author will not need to like.
Users who have replied in the thread also do not need to like.
 
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
 
Back
Top Bottom