PDA

View Full Version : My Permissions arent working>_<


AN-net
31 Aug 2004, 17:49
ok im even logged out and it still doesnt deny the viewer

here is my code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


$journalinfo[private] is set to 1 so it should consider it private. i even add the if the statement for guests to assure they cant view it but still it doesnt work>_<

if $canview[thisjournal] returns false it should print no permission but it isnt. anyone know y?

rake
31 Aug 2004, 19:09
in the bbuserinfo[userid] == 0 part, add the following:

echo "1";
print_r($canview);
exit;

if you don't get anything it means one of the above statements returns true, and it doesn't even get to this part.

Also, i'm guessing after this, there's something like:

if($canview['thisjournal'] == false)
{
print_no_permission();
}

AN-net
31 Aug 2004, 19:43
well its just


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

AN-net
31 Aug 2004, 20:22
fixed it, turns out it was thinking the guest was in private list of viewers>_>