diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php
index 7e9a7964a3..fef71922e3 100644
--- a/pandora_console/godmode/menu.php
+++ b/pandora_console/godmode/menu.php
@@ -26,8 +26,7 @@
* GNU General Public License for more details.
* ============================================================================
*/
-$config['license_nms'] = 1;
-// ! Eliminar!
+
// Begin.
require_once 'include/config.php';
require_once 'include/functions_menu.php';
diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php
index 17f2020d13..748c707227 100644
--- a/pandora_console/godmode/servers/modificar_server.php
+++ b/pandora_console/godmode/servers/modificar_server.php
@@ -141,11 +141,13 @@ if (isset($_GET['server'])) {
];
- $buttons['collections'] = [
- 'active' => false,
- 'text' => ''.html_print_image('images/collection.png', true, ['title' => __('Collections')]).'',
+ if ($config['license_nms'] !== 1) {
+ $buttons['collections'] = [
+ 'active' => false,
+ 'text' => ''.html_print_image('images/collection.png', true, ['title' => __('Collections')]).'',
- ];
+ ];
+ }
}
$buttons[$tab]['active'] = true;
diff --git a/pandora_console/include/class/SatelliteCollection.class.php b/pandora_console/include/class/SatelliteCollection.class.php
index 34348fdc7a..b8535f5cc6 100644
--- a/pandora_console/include/class/SatelliteCollection.class.php
+++ b/pandora_console/include/class/SatelliteCollection.class.php
@@ -84,6 +84,15 @@ class SatelliteCollection extends HTML
return;
}
+ if ($config['license_nms'] === 1) {
+ db_pandora_audit(
+ AUDIT_LOG_NMS_VIOLATION,
+ 'Trying to access satellite collections'
+ );
+ include $config['homedir'].'/general/noaccess.php';
+ return;
+ }
+
// Set the ajax controller.
$this->ajaxController = $ajaxController;
// Capture all parameters before start.