bug 1137: setting the "certify" check box should depend on the method selected not on
authorMichael Tänzer <neo@nhng.de>
Sat, 24 Aug 2013 13:41:19 +0000 (15:41 +0200)
committerMichael Tänzer <neo@nhng.de>
Sat, 24 Aug 2013 13:41:19 +0000 (15:41 +0200)
whether one is TTP Assurer

Signed-off-by: Michael Tänzer <neo@nhng.de>
www/wot.php

index daba46a..4574221 100644 (file)
@@ -126,7 +126,7 @@ function send_reminder()
 
        if($oldid == 12)
                $id = $oldid;
-               
+
        if($oldid == 4)
        {
                if ($_POST['ttp']!='') {
@@ -278,7 +278,7 @@ $iecho= "c";
                }
 
                //met assuree in person, not appliciable fot TTP / TTP Topup assurances
-               if((!array_key_exists('certify',$_POST) || $_POST['certify'] != 1 )  && $_SESSION['profile']['ttpadmin'] != 1)
+               if((!array_key_exists('certify',$_POST) || $_POST['certify'] != 1 )  && $_REQUEST['method'] != "Trusted 3rd Parties")
                {
                        show_page("VerifyData","",_("You failed to check all boxes to validate your adherence to the rules and policies of CAcert"));
                        exit;