UBB NEW REPLY
#########
#find : #
#########
# check to make sure user has access/permission to post!
if (($permission =~ m/private/) || ($reply_restrict =~ m/restrict/)) {
################
# replace with #
################
# check to make sure user has access/permission to post and is not going to see if forum exists (coz hidden)
if ($permission =~ m/hidden/) {
&check_private_access($in{f}, $this_forum[12], 'hidden');
}
# check to make sure user has access/permission to post!
if (($permission =~ m/private/) || ($reply_restrict =~ m/restrict/)) {
&check_private_access($in{f}, $this_forum[12]);
}
Shouldnt this be
########
#find : #
#########
# check to make sure user has access/permission to post!
if (($permission =~ m/private/) || ($reply_restrict =~ m/restrict/)) {
&check_private_access($in{f}, $this_forum[12]);
}
################
# replace with #
################
# check to make sure user has access/permission to post and is not going to see if forum exists (coz hidden)
if ($permission =~ m/hidden/) {
&check_private_access($in{f}, $this_forum[12], 'hidden');
}
# check to make sure user has access/permission to post!
if (($permission =~ m/private/) || ($reply_restrict =~ m/restrict/)) {
&check_private_access($in{f}, $this_forum[12]);
}