Skip to content

Commit

Permalink
Apply review feedback suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamabunta57 authored and cedricalfonsi committed Jun 6, 2023
1 parent 659fbdd commit d13761b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/shared/models/entity/rbac/actionEntity.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/shared/models/entity/rbac/actionEntity.test.data.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/shared/models/entity/rbac/actionEntity.test.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/shared/models/entity/rbac/rbacEntity.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}
*/
Expand Down

0 comments on commit d13761b

Please sign in to comment.