mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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
f7d31365a0
commit
c78199a6bb
@ -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>
|
2013-02-08 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/groups/configure_group.php: Fixed some bugs on
|
* godmode/groups/configure_group.php: Fixed some bugs on
|
||||||
|
@ -88,11 +88,10 @@ $defaultMapId = null;
|
|||||||
if ($maps){
|
if ($maps){
|
||||||
$own_info = get_user_info($config['id_user']);
|
$own_info = get_user_info($config['id_user']);
|
||||||
foreach ($maps as $map) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
if ($map['group_id'] == 0 && (!$own_info['is_admin'] || !check_acl ($config['id_user'], 0, "PM")))
|
|
||||||
continue;
|
|
||||||
$checked = false;
|
$checked = false;
|
||||||
if ($map['default_map']) {
|
if ($map['default_map']) {
|
||||||
$checked = true;
|
$checked = true;
|
||||||
|
@ -580,7 +580,7 @@ $data[1] = html_print_select_groups($config['id_user'], "UM",
|
|||||||
|
|
||||||
$tags = tags_get_all_tags();
|
$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_image ('add', 'images/add.png', 1, '', true);
|
||||||
$data[3] .= html_print_input_hidden ('id', $id, true);
|
$data[3] .= html_print_input_hidden ('id', $id, true);
|
||||||
|
@ -38,14 +38,12 @@ $table->align[1] = 'center';
|
|||||||
$rowPair = true;
|
$rowPair = true;
|
||||||
$iterator = 0;
|
$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) {
|
if ($maps !== false) {
|
||||||
foreach ($maps as $map) {
|
foreach ($maps as $map) {
|
||||||
|
if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($rowPair)
|
if ($rowPair)
|
||||||
$table->rowclass[$iterator] = 'rowPair';
|
$table->rowclass[$iterator] = 'rowPair';
|
||||||
else
|
else
|
||||||
@ -53,13 +51,6 @@ if ($maps !== false) {
|
|||||||
$rowPair = !$rowPair;
|
$rowPair = !$rowPair;
|
||||||
$iterator++;
|
$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 = array ();
|
||||||
|
|
||||||
$data[0] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.
|
$data[0] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user