mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '2791-ACL-enterprise-view-dashboard-permite-al-usuario-hacer-busquedas-por-nombre-de-agente-exponiendo-datos-confidenciales-dev' into 'develop'
Added head search in acl enterprise See merge request artica/pandorafms!1801
This commit is contained in:
commit
c8121d7df3
@ -72,7 +72,17 @@ config_check();
|
|||||||
$table->width = "100%";
|
$table->width = "100%";
|
||||||
$table->styleTable = 'margin: auto; margin-top: 0px;';
|
$table->styleTable = 'margin: auto; margin-top: 0px;';
|
||||||
$table->rowclass[0] = '';
|
$table->rowclass[0] = '';
|
||||||
|
|
||||||
|
$acl_head_search = true;
|
||||||
|
if ($config["acl_enterprise"] == 1 && !users_is_admin()) {
|
||||||
|
$acl_head_search = db_get_sql("SELECT sec FROM tusuario
|
||||||
|
INNER JOIN tusuario_perfil ON tusuario.id_user = tusuario_perfil.id_usuario
|
||||||
|
INNER JOIN tprofile_view ON tprofile_view.id_profile = tusuario_perfil.id_perfil
|
||||||
|
WHERE tusuario.id_user = '".$config['id_user']."' AND (sec = '*' OR sec = 'head_search')");
|
||||||
|
}
|
||||||
|
if ($acl_head_search) {
|
||||||
$table->data[0][11] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true);
|
$table->data[0][11] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true);
|
||||||
|
|
||||||
// Search bar
|
// Search bar
|
||||||
$search_bar = '<form method="get" style="display: inline;" name="quicksearch" action="">';
|
$search_bar = '<form method="get" style="display: inline;" name="quicksearch" action="">';
|
||||||
if (!isset($config['search_keywords'])) {
|
if (!isset($config['search_keywords'])) {
|
||||||
@ -103,6 +113,7 @@ config_check();
|
|||||||
$search_bar .= '</form>';
|
$search_bar .= '</form>';
|
||||||
|
|
||||||
$table->data[0]['searchbar'] = $search_bar;
|
$table->data[0]['searchbar'] = $search_bar;
|
||||||
|
}
|
||||||
|
|
||||||
// Servers check
|
// Servers check
|
||||||
$servers = array();
|
$servers = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user