Forums

Only Display results to selected user accounts

bneese 16 Aug, 2010
I want to be able to only allow selected user accounts the ability to see and edit the data. I know I can use:

<?php
$user =&JFactory::getUser();
echo $user->name;
}
?>

To get back the user name, but how can I block who can see the data?
GreyHead 17 Aug, 2010
Hi bneese,

Basically you redirect any users who don't meet your criteria . . . but what is the test you want to use to allow users to view the form?

Bob
This topic is locked and no more replies can be posted.