diff -Nur phpki/phpki-0.82/ca/manage_certs.php phpki_mod/phpki-0.82/ca/manage_certs.php --- phpki/phpki-0.82/ca/manage_certs.php 2011-06-29 13:07:14.000000000 +0200 +++ phpki_mod/phpki-0.82/ca/manage_certs.php 2011-06-29 13:08:22.000000000 +0200 @@ -20,12 +20,6 @@ $show_revoked = gpvar('show_revoked'); $show_expired = gpvar('show_expired'); - -# Prevent handling certs that don't belong to user -if ($serial && CAdb_issuer($serial) != $PHPki_user && ! in_array($PHPki_user, $PHPki_admins)) { - $stage = 'goaway'; -} - if ( !($show_valid.$show_revoked.$show_expired) ) { $show_valid = 'V'; $show_revoked = 'R'; @@ -366,12 +360,7 @@ $x = "^[$show_valid$show_revoked$show_expired]"; - if (in_array($PHPki_user, $PHPki_admins)) { - $x = "$x.*$search"; - } - else { - $x = "$x.*$search.*$PHPki_user|$x.*$PHPki_user.*$search"; - } + $x = "$x.*$search"; $db = csort(CAdb_to_array($x), $sortfield, ($ascdec=='A'?SORT_ASC:SORT_DESC));