Hi TECK,
your Script does NOT work correctly. This is fact. The problem is,
if you have subcategories which get their permissions from the
parent forumid.
You check if the permission for the usergroup is set to = '1'
or if it is empty.
But what happens if you have the case that you have a
subcategory ( no permissions are set ) which get their
permissions from the parent forumid and in the forum parent
category the permission is set to "0" ???? The User should have
NO ACCESS to the subforum but with your script the user HAVE
access to the subcategory.
It took me more than 6 hours to find a fix for this tricky thing.
But it works now.
Nevertheless, thanks for your quick answer.
Best regards,
Pseudomizer
|