phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: admin acl2_tester.php,1.1,1.2


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin acl2_tester.php,1.1,1.2
Date: Mon, 13 Jan 2003 06:29:45 -0500

Update of /cvsroot/phpgroupware/admin
In directory subversions:/tmp/cvs-serv25664

Modified Files:
        acl2_tester.php 
Log Message:
added more details to acl2_tester.php

Index: acl2_tester.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/acl2_tester.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** acl2_tester.php     12 Jan 2003 20:20:16 -0000      1.1
--- acl2_tester.php     13 Jan 2003 11:29:41 -0000      1.2
***************
*** 24,31 ****
        echo 'This test is going to delete all your phpgw_acl2 records to 
ensure that the tests run as expected.<br>';
        $GLOBALS['phpgw']->db->query('DELETE FROM 
phpgw_acl2',__LINE__,__FILE__);
!       echo 'All records deleted...<br>';
        echo 'Running checks on .one.two.three after changing directly granted 
rights as well as ones it will inherit from<br>';
        
!       echo '1: check rights for .one.two which will get inherited by 
.one.two.three<br>';
        ttt('.one.two', 1);
        ttt('.one.two', 2);
--- 24,31 ----
        echo 'This test is going to delete all your phpgw_acl2 records to 
ensure that the tests run as expected.<br>';
        $GLOBALS['phpgw']->db->query('DELETE FROM 
phpgw_acl2',__LINE__,__FILE__);
!       echo 'Action: DELETE FROM phpgw_acl2<br><br>';
        echo 'Running checks on .one.two.three after changing directly granted 
rights as well as ones it will inherit from<br>';
        
!       echo '<br>1: check rights for .one.two which will get inherited by 
.one.two.three<br>';
        ttt('.one.two', 1);
        ttt('.one.two', 2);
***************
*** 41,46 ****
        echo 'You can see that no rights are set directly as well<br>';
  
-       $sec->add('.one.two.three',4,0);
        echo '<br>3: add rights 4 to .one.two.three<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 41,47 ----
        echo 'You can see that no rights are set directly as well<br>';
  
        echo '<br>3: add rights 4 to .one.two.three<br>';
+       echo 'Action: $acl2->add(\'.one.two.three\',4,0);<br>';
+       $sec->add('.one.two.three',4,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 48,53 ****
        ttt('.one.two.three', 8);
        
-       $sec->add('.one.two.three',8,0);
        echo '<br>4: add rights 8 to .one.two.three<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 49,55 ----
        ttt('.one.two.three', 8);
        
        echo '<br>4: add rights 8 to .one.two.three<br>';
+       echo 'Action: $acl2->add(\'.one.two.three\',8,0);<br>';
+       $sec->add('.one.two.three',8,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 55,60 ****
        ttt('.one.two.three', 8);
  
-       $sec->remove('.one.two.three',4,0);
        echo '<br>5: remove rights 4 from .one.two.three<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 57,63 ----
        ttt('.one.two.three', 8);
  
        echo '<br>5: remove rights 4 from .one.two.three<br>';
+       echo 'Action: $acl2->remove(\'.one.two.three\',4,0);<br>';
+       $sec->remove('.one.two.three',4,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 62,67 ****
        ttt('.one.two.three', 8);
  
-       $sec->set('.one.two.three', 2,0);
        echo '<br>5: set rights to 2 on .one.two.three<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 65,71 ----
        ttt('.one.two.three', 8);
  
        echo '<br>5: set rights to 2 on .one.two.three<br>';
+       echo 'Action: $acl2->set(\'.one.two.three\', 2,0);<br>';
+       $sec->set('.one.two.three', 2,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 69,75 ****
        ttt('.one.two.three', 8);
  
-       $sec->add('.one.two',8,0);
        echo '<br>Now to see inheritance in action...<br>';
        echo '6: add rights 8 to .one.two<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 73,80 ----
        ttt('.one.two.three', 8);
  
        echo '<br>Now to see inheritance in action...<br>';
        echo '6: add rights 8 to .one.two<br>';
+       echo 'Action: $acl2->add(\'.one.two\',8,0);<br>';
+       $sec->add('.one.two',8,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 78,83 ****
        echo 'You can see here that it has inherited rights 8 from 
.one.two<br>';
  
-       $sec->add('.one.two',4,0);
        echo '<br>7: add rights 4 to .one.two<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 83,89 ----
        echo 'You can see here that it has inherited rights 8 from 
.one.two<br>';
  
        echo '<br>7: add rights 4 to .one.two<br>';
+       echo 'Action: $acl2->add(\'.one.two\',4,0);<br>';
+       $sec->add('.one.two',4,0);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
***************
*** 86,92 ****
        echo 'You can see here that it has also inherited rights 4 from 
.one.two<br>';
  
-       $sec->add('.one.two',8,1);
        echo '<br>Now to see inherited rights masks in action...<br>';
        echo '8: add rights mask for 8 to .one.two<br>';
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);
--- 92,99 ----
        echo 'You can see here that it has also inherited rights 4 from 
.one.two<br>';
  
        echo '<br>Now to see inherited rights masks in action...<br>';
        echo '8: add rights mask for 8 to .one.two<br>';
+       echo 'Action: $acl2->add(\'.one.two\',8,1);<br>';
+       $sec->add('.one.two',8,1);
        ttt('.one.two.three', 1);
        ttt('.one.two.three', 2);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]