diff --git a/src/shared/models/entity/rbac/actionEntity.js b/src/shared/models/entity/rbac/actionEntity.js index d34ed90f0..554e2d7e6 100644 --- a/src/shared/models/entity/rbac/actionEntity.js +++ b/src/shared/models/entity/rbac/actionEntity.js @@ -1,15 +1,15 @@ /** * Passbolt ~ Open source password manager for teams - * Copyright (c) Passbolt SA (https://www.passbolt.com) + * Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * - * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) + * @copyright Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) - * @since 4.0.0 + * @since 4.1.0 */ import Entity from "../abstract/entity"; import EntitySchema from "../abstract/entitySchema"; diff --git a/src/shared/models/entity/rbac/actionEntity.test.data.js b/src/shared/models/entity/rbac/actionEntity.test.data.js index 1b8a2d0cf..ffe814914 100644 --- a/src/shared/models/entity/rbac/actionEntity.test.data.js +++ b/src/shared/models/entity/rbac/actionEntity.test.data.js @@ -1,12 +1,12 @@ /** * Passbolt ~ Open source password manager for teams - * Copyright (c) Passbolt SA (https://www.passbolt.com) + * Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * - * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) + * @copyright Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) * @since 4.1.0 diff --git a/src/shared/models/entity/rbac/actionEntity.test.js b/src/shared/models/entity/rbac/actionEntity.test.js index 02e1bff17..9cacc1b37 100644 --- a/src/shared/models/entity/rbac/actionEntity.test.js +++ b/src/shared/models/entity/rbac/actionEntity.test.js @@ -1,12 +1,12 @@ /** * Passbolt ~ Open source password manager for teams - * Copyright (c) Passbolt SA (https://www.passbolt.com) + * Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * - * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) + * @copyright Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) * @since 4.1.0 @@ -61,7 +61,8 @@ describe("ActionEntity", () => { it(`Should not accept: ${test.scenario}`, async() => { expect.assertions(2); const dto = defaultActionData({ - id: test.value + id: uuid(), + name: test.value }); try { new ActionEntity(dto); diff --git a/src/shared/models/entity/rbac/rbacEntity.js b/src/shared/models/entity/rbac/rbacEntity.js index 4567aa27d..ce4cd6f34 100644 --- a/src/shared/models/entity/rbac/rbacEntity.js +++ b/src/shared/models/entity/rbac/rbacEntity.js @@ -1,12 +1,12 @@ /** * Passbolt ~ Open source password manager for teams - * Copyright (c) Passbolt SA (https://www.passbolt.com) + * Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * - * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) + * @copyright Copyright (c) 2023 Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) * @since 4.1.0 @@ -120,7 +120,7 @@ class RbacEntity extends Entity { } /** - * Return a to update DTO ready to send to the API. + * Return an update DTO ready to send to the API. * * @returns {object} */