2013-02-11 Sergio Martin <sergio.martin@artica.es>
* operation/gis_maps/index.php godmode/gis_maps/index.php: Fixed ACL access of not admin users to the maps of group All on GIS * godmode/users/configure_user.php: Change a string to crearify the tags ACLs assignation git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
51d3057ae6
commit
50d963745a
|
@ -1,3 +1,12 @@
|
|||
2013-02-11 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/gis_maps/index.php
|
||||
godmode/gis_maps/index.php: Fixed ACL access of
|
||||
not admin users to the maps of group All on GIS
|
||||
|
||||
* godmode/users/configure_user.php: Change a string to
|
||||
crearify the tags ACLs assignation
|
||||
|
||||
2013-02-08 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/groups/configure_group.php: Fixed some bugs on
|
||||
|
|
|
@ -88,11 +88,10 @@ $defaultMapId = null;
|
|||
if ($maps){
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
foreach ($maps as $map) {
|
||||
if (!check_acl ($config["id_user"], $map["group_id"], "IR")) {
|
||||
if (!check_acl ($config["id_user"], $map["group_id"], "IW")) {
|
||||
continue;
|
||||
}
|
||||
if ($map['group_id'] == 0 && (!$own_info['is_admin'] || !check_acl ($config['id_user'], 0, "PM")))
|
||||
continue;
|
||||
|
||||
$checked = false;
|
||||
if ($map['default_map']) {
|
||||
$checked = true;
|
||||
|
@ -163,4 +162,4 @@ function setDefault(id_tgis_map) {
|
|||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -580,7 +580,7 @@ $data[1] = html_print_select_groups($config['id_user'], "UM",
|
|||
|
||||
$tags = tags_get_all_tags();
|
||||
|
||||
$data[2] = html_print_select($tags, 'assign_tags[]', '', '', __('None'), '', true, true);
|
||||
$data[2] = html_print_select($tags, 'assign_tags[]', '', '', __('Any'), '', true, true);
|
||||
|
||||
$data[3] = html_print_input_image ('add', 'images/add.png', 1, '', true);
|
||||
$data[3] .= html_print_input_hidden ('id', $id, true);
|
||||
|
|
|
@ -38,14 +38,12 @@ $table->align[1] = 'center';
|
|||
$rowPair = true;
|
||||
$iterator = 0;
|
||||
|
||||
$own_info = get_user_info ($config['id_user']);
|
||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
||||
$own_groups = array_keys(users_get_groups($config['id_user'], "IR"));
|
||||
else
|
||||
$own_groups = array_keys(users_get_groups($config['id_user'], "IR", false));
|
||||
|
||||
if ($maps !== false) {
|
||||
foreach ($maps as $map) {
|
||||
if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($rowPair)
|
||||
$table->rowclass[$iterator] = 'rowPair';
|
||||
else
|
||||
|
@ -53,13 +51,6 @@ if ($maps !== false) {
|
|||
$rowPair = !$rowPair;
|
||||
$iterator++;
|
||||
|
||||
$is_in_group = in_array($map['group_id'], $own_groups);
|
||||
if (!$is_in_group){
|
||||
continue;
|
||||
}
|
||||
if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) {
|
||||
continue;
|
||||
}
|
||||
$data = array ();
|
||||
|
||||
$data[0] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.
|
||||
|
|
Loading…
Reference in New Issue