• Hello,

    I’m trying to have this plugin work.
    Basically it’s pretty good but I’m still facing issues with user rights and roles.
    So I decided to test the plugin using the test.php script.

    I tried the example condition that is given in the documentation, which is :
    $condition = '[(CAS{cas_user_id} -EQ "mbrown") -AND (CAS{email} -CONTAINS "my-university.fr")] -OR (CAS{cas_user_id} -STARTWITH "test")';

    For the user, I have :

    $mock_cas_object = array(
    	'cas_user_id' => '123',
    	'first_name' => 'Brian',
    	'email' => '[email protected]',
    );

    When I run the test, the response is true, while it shouldn’t.
    I don’t understand why, as I copied/pasted it from the doc.

    Any idea of what may be wrong ?

  • The topic ‘Complex condition not working’ is closed to new replies.