N°8189 - Addons userrights - one is enough - deprecate other files

This commit is contained in:
Anne-Cath
2025-07-31 17:09:05 +02:00
parent e6ea2fd541
commit 9c6b8f90f0
4 changed files with 16 additions and 64 deletions

View File

@@ -1,29 +1,14 @@
<?php
// Copyright (C) 2010-2024 Combodo SAS
//
// This file is part of iTop.
//
// iTop is free software; you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iTop 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 iTop. If not, see <http://www.gnu.org/licenses/>
/**
* UserRightsMatrix (User management Module)
*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @deprecated 3.3.0
* @license http://opensource.org/licenses/AGPL-3.0
* @copyright Copyright (C) 2010-2024 Combodo SAS
*/
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use file addons/userrights/userrightsprofile.class.inc.php instead (param in configuration file)');
class UserRightsMatrixClassGrant extends DBObject
{
public static function Init()

View File

@@ -1,29 +1,14 @@
<?php
// Copyright (C) 2010-2024 Combodo SAS
//
// This file is part of iTop.
//
// iTop is free software; you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iTop 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 iTop. If not, see <http://www.gnu.org/licenses/>
/**
* UserRightsNull
* User management Module - say Yeah! to everything
*
* @deprecated 3.3.0
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use file addons/userrights/userrightsprofile.class.inc.php instead (param in configuration file)');
class UserRightsNull extends UserRightsAddOnAPI
{
// Installation: create the very first user

View File

@@ -1,26 +1,17 @@
<?php
/**
* Copyright (C) 2013-2024 Combodo SAS
* UserRightsMatrix (User management Module)
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop 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
* @deprecated 3.3.0
* @license http://opensource.org/licenses/AGPL-3.0
* @copyright Copyright (C) 2010-2024 Combodo SAS
*/
use Combodo\iTop\Application\WebPage\WebPage;
define('ADMIN_PROFILE_NAME', 'Administrator');
define('PORTAL_PROFILE_NAME', 'Portal user');
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use file addons/userrights/userrightsprofile.class.inc.php instead (param in configuration file)');
class UserRightsBaseClassGUI extends cmdbAbstractObject
{
@@ -1056,4 +1047,3 @@ exit;
UserRights::SelectModule('UserRightsProfile');
?>

View File

@@ -1,25 +1,17 @@
<?php
/**
* Copyright (C) 2013-2024 Combodo SAS
* UserRightsMatrix (User management Module)
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop 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
* @deprecated 3.3.0
* @license http://opensource.org/licenses/AGPL-3.0
* @copyright Copyright (C) 2010-2024 Combodo SAS
*/
use Combodo\iTop\Application\WebPage\WebPage;
define('ADMIN_PROFILE_ID', 1);
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use file addons/userrights/userrightsprofile.class.inc.php instead (param in configuration file)');
class UserRightsBaseClass extends cmdbAbstractObject
{