mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
9220 Restrict access to collections with nms license
This commit is contained in:
parent
c503836634
commit
4392bd7fa8
@ -26,8 +26,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
*/
|
*/
|
||||||
$config['license_nms'] = 1;
|
|
||||||
// ! Eliminar!
|
|
||||||
// Begin.
|
// Begin.
|
||||||
require_once 'include/config.php';
|
require_once 'include/config.php';
|
||||||
require_once 'include/functions_menu.php';
|
require_once 'include/functions_menu.php';
|
||||||
|
@ -141,11 +141,13 @@ if (isset($_GET['server'])) {
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$buttons['collections'] = [
|
if ($config['license_nms'] !== 1) {
|
||||||
'active' => false,
|
$buttons['collections'] = [
|
||||||
'text' => '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_remote='.$id_server.'&ext='.$ext.'&tab=collections&pure='.$pure.'">'.html_print_image('images/collection.png', true, ['title' => __('Collections')]).'</a>',
|
'active' => false,
|
||||||
|
'text' => '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_remote='.$id_server.'&ext='.$ext.'&tab=collections&pure='.$pure.'">'.html_print_image('images/collection.png', true, ['title' => __('Collections')]).'</a>',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$buttons[$tab]['active'] = true;
|
$buttons[$tab]['active'] = true;
|
||||||
|
@ -84,6 +84,15 @@ class SatelliteCollection extends HTML
|
|||||||
return;
|
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.
|
// Set the ajax controller.
|
||||||
$this->ajaxController = $ajaxController;
|
$this->ajaxController = $ajaxController;
|
||||||
// Capture all parameters before start.
|
// Capture all parameters before start.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user