MantisBT - ATutor
View Issue Details
0003753ATutorTests/Surveyspublic2009-05-25 04:212009-07-21 08:50
greg 
harris 
normalminorhave not tried
closedfixed 
 
1.6.3 
SVN
0003753: Assistants can't view group tests
Assistants with test privileges can not see group tests.


http://www.atutor.ca/view/3/17497/1.html [^]
No tags attached.
Issue History
2009-05-25 04:21gregNew Issue
2009-05-25 04:21gregAffects version => SVN
2009-06-02 12:19harrisNote Added: 0003566
2009-06-03 06:23harrisStatusnew => resolved
2009-06-03 06:23harrisResolutionopen => fixed
2009-06-03 06:23harrisAssigned To => harris
2009-06-03 06:23harrisNote Added: 0003568
2009-06-12 09:32gregStatusresolved => new
2009-06-12 09:33gregStatusnew => resolved
2009-06-12 09:33gregFixed in Version => 1.6.3
2009-07-21 08:50gregStatusresolved => closed

Notes
(0003566)
harris   
2009-06-02 12:19   
Confirmed.

include/lib/test_result_functions.inc.php

authenticate_test() <-- this function doesn't check TA privileges.
(0003568)
harris   
2009-06-03 06:23   
Added an assistant check as follow:


//Check assistants privileges
    $sql = "SELECT privileges FROM at_course_enrollment a WHERE member_id=$_SESSION[member_id] AND course_id=$_SESSION[course_id]";
    $result = mysql_query($sql, $db);
    if ($result){
        list($privileges) = mysql_fetch_array($result);
        if (query_bit($privileges, AT_PRIV_GROUPS) && query_bit($privileges, AT_PRIV_TESTS)){
            return TRUE;
        }

    }

svn: 8514