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

Contents of /rpms/phpki/contribs9/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)
Mon Nov 11 17:01:18 2013 UTC (11 years ago) by vip-ire
Branch: MAIN
CVS Tags: phpki-0_82-21_el6_sme, phpki-0_82-22_el6_sme, phpki-0_82-20_el6_sme, phpki-0_82-18_el6_sme, phpki-0_82-23_el6_sme, phpki-0_82-17_el6_sme, phpki-0_82-16_el6_sme, phpki-0_82-19_el6_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