2006-08-16 11:42:25
Prevent Users from seeing tests that arent in their GROUP Solution
Howdy,
I did a quick search and didn't find anything regarding a solution to this, so I figured I'd post it for future reference.
If you would like to prevent users from seeing tests that aren't assigned to their group_id, there's a short bit of code that you can un comment in the my_tests.php script that'll do just that.
Edit ./tools/my_tests.php
Un-comment the following (i.e. delete the /* and */)
[quote]
/*
// this code hides tests from the user if they are not enrolled.
if (!authenticate_test($row['test_id'])) {
continue;
}
*/
[/quote]