Skip to content

Commit

Permalink
Hotfix - Grupos de Seguridad - Evitar Ajax en el módulo y renombrar f…
Browse files Browse the repository at this point in the history
…ichero (#66)
  • Loading branch information
juanSTIC authored and AlbertoSTIC committed Jan 18, 2024
1 parent 7f9ff44 commit 8d6d4a1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 45 deletions.
4 changes: 4 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
// STIC#1086 - Do not apply Ajax in this module, the same as in Import module.
2 => 'stic_Import_Validation',
// END STIC
// STIC - JCH - 20240118 - Avoid Ajax in module Rules
// https://github.com/SinergiaTIC/SinergiaCRM/pull/66
3 => 'stic_Security_Groups_Rules',
// END STIC
),
'admin_access_control' => false,
'admin_export_only' => false,
Expand Down
45 changes: 0 additions & 45 deletions custom/Extension/modules/SecurityGroups/Ext/Menus/Menu.php

This file was deleted.

32 changes: 32 additions & 0 deletions custom/Extension/modules/SecurityGroups/Ext/Menus/SticMenu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}

/**
* This file is part of SinergiaCRM.
* SinergiaCRM is a work developed by SinergiaTIC Association, based on SuiteCRM.
* Copyright (C) 2013 - 2023 SinergiaTIC Association
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SinergiaTIC Association at email address [email protected].
*/

global $mod_strings, $app_strings, $sugar_config, $current_user;

if ($current_user->is_admin == true) {
$module_menu[] = array("index.php?module=stic_Security_Groups_Rules&action=index&return_module=stic_Security_Groups_Rules&return_action=DetailView", translate('LBL_MODULE_NAME', 'stic_Security_Groups_Rules'), "stic_Security_Groups_Rules", 'stic_Security_Groups_Rules');
}

0 comments on commit 8d6d4a1

Please sign in to comment.