This commit is contained in:
Ralf Becker 2018-04-03 20:14:03 +02:00
parent 3fa29a542d
commit 2e04407ed7

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* EGroupWare admin - admin command: check ACL for entries of deleted Api\Accounts * EGroupWare admin - admin command: check ACL for entries of deleted accounts
* *
* @link http://www.egroupware.org * @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de> * @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
@ -50,7 +50,7 @@ class admin_cmd_check_acl extends admin_cmd
$GLOBALS['egw']->db->query("DELETE FROM egw_acl WHERE acl_account NOT IN (".implode(',',$ids).") OR acl_appname='phpgw_group' AND acl_location NOT IN ('".implode("','",$ids)."')",__LINE__,__FILE__); $GLOBALS['egw']->db->query("DELETE FROM egw_acl WHERE acl_account NOT IN (".implode(',',$ids).") OR acl_appname='phpgw_group' AND acl_location NOT IN ('".implode("','",$ids)."')",__LINE__,__FILE__);
$deleted = $GLOBALS['egw']->db->affected_rows(); $deleted = $GLOBALS['egw']->db->affected_rows();
} }
return lang("%1 ACL records of not (longer) existing Api\Accounts deleted.",$deleted); return lang("%1 ACL records of not (longer) existing accounts deleted.",$deleted);
} }
/** /**