Quote:
Originally Posted by Weasel
I'm having problems with your code RobinHood, it seems to break the permissions of normal attachments, i.e. no one can view them now.
|
Okay, try this:
Change:
PHP Code:
if (!($forumperms & CANGETATTACHMENT))
{
$vboptions['viewattachedimages'] = 0;
$vboptions['attachthumbs'] = 0;
}
To:
PHP Code:
if (!($forumperms & CANVIEW) OR !($forumperms & CANGETATTACHMENT))
{
$vboptions['viewattachedimages'] = 0;
$vboptions['attachthumbs'] = 0;
}
That should do the trick. Let me know how it goes.