/[smecontribs]/rpms/phpki/contribs10/phpki-0.82-ca_admin_users.patch
ViewVC logotype

Contents of /rpms/phpki/contribs10/phpki-0.82-ca_admin_users.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Nov 24 14:35:37 2020 UTC (4 years ago) by brianr
Branch: MAIN
CVS Tags: phpki-0_82-24_el7_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 diff -Nur phpki/phpki-0.82/ca/manage_certs.php phpki_mod/phpki-0.82/ca/manage_certs.php
2 --- phpki/phpki-0.82/ca/manage_certs.php 2011-06-29 13:07:14.000000000 +0200
3 +++ phpki_mod/phpki-0.82/ca/manage_certs.php 2011-06-29 13:08:22.000000000 +0200
4 @@ -20,12 +20,6 @@
5 $show_revoked = gpvar('show_revoked');
6 $show_expired = gpvar('show_expired');
7
8 -
9 -# Prevent handling certs that don't belong to user
10 -if ($serial && CAdb_issuer($serial) != $PHPki_user && ! in_array($PHPki_user, $PHPki_admins)) {
11 - $stage = 'goaway';
12 -}
13 -
14 if ( !($show_valid.$show_revoked.$show_expired) ) {
15 $show_valid = 'V';
16 $show_revoked = 'R';
17 @@ -366,12 +360,7 @@
18
19 $x = "^[$show_valid$show_revoked$show_expired]";
20
21 - if (in_array($PHPki_user, $PHPki_admins)) {
22 - $x = "$x.*$search";
23 - }
24 - else {
25 - $x = "$x.*$search.*$PHPki_user|$x.*$PHPki_user.*$search";
26 - }
27 + $x = "$x.*$search";
28
29 $db = csort(CAdb_to_array($x), $sortfield, ($ascdec=='A'?SORT_ASC:SORT_DESC));
30

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed