Changeset 3335 for branches/2.2/phpgwapi
- Timestamp:
- 10/06/10 17:24:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/inc/class.acl.inc.php
r1280 r3335 634 634 } 635 635 636 function get_rights_and_owners($user,$appname = False) 637 { 638 639 if (!$appname) $appname = $GLOBALS['phpgw_info']['flags']['currentapp']; 640 641 if (!count($this->data) && $GLOBALS['phpgw_info']['server']['acl_default'] != 'deny') 642 { 643 return True; 644 } 645 646 $db2 = clone($this->db); 647 $db2->select($this->table_name,array('acl_account','acl_rights'),array( 648 'acl_appname' => $appname, 649 'acl_location' => $user, 650 ),__LINE__,__FILE__); 651 $return = array(); 652 while ($db2->next_record()) 653 { 654 $return[] = array( 655 'acl_rights' => $db2->f('acl_rights'), 656 'acl_account' => $db2->f('acl_account') 657 ); 658 } 659 return $return; 660 } 661 636 662 /** 637 663 * Deletes all ACL entries for an account (user or group)
Note: See TracChangeset
for help on using the changeset viewer.