ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Prevent Users from seeing tests that arent in their GROUP Solution


  • 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]

  • 2006-08-16 11:46:13

    Re: Prevent Users from seeing tests that aren't in their GROUP - Solution

    Dangit, somehow ended up with a tripple post! Sorry