Fixed progragate acl tags, children not get tags to father, Tickets #1939

This commit is contained in:
m-lopez-f 2015-03-12 10:55:06 +01:00
parent d673737e2d
commit 8096cbfa19

View File

@ -2113,7 +2113,7 @@ function __add_acltags (&$acltags, $group_id, $tags_str) {
} }
// Propagation // Propagation
$propagate = (bool) db_get_value('propagate', 'tgrupo', 'id_grupo', $group_tag['id_grupo']); $propagate = (bool) db_get_value('propagate', 'tgrupo', 'id_grupo', $group_id);
if ($propagate) { if ($propagate) {
$sql = "SELECT id_grupo FROM tgrupo WHERE parent = $group_id"; $sql = "SELECT id_grupo FROM tgrupo WHERE parent = $group_id";
$children = db_get_all_rows_sql($sql); $children = db_get_all_rows_sql($sql);