Skip to content

Commit

Permalink
solve TODO, government renamed to overheid fits better in the context
Browse files Browse the repository at this point in the history
  • Loading branch information
ValenberghsSven committed May 5, 2021
1 parent 362cc17 commit 0a27411
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/services/current-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export default Service.extend({
userRoleId,
} = this;
const {
governmentId,
overheidId,
} = CONFIG;
const roles = [governmentId];
const roles = [overheidId];
return roles.includes(userRoleId);
},

Expand All @@ -92,9 +92,9 @@ export default Service.extend({
userRoleId,
} = this;
const {
adminId, kanselarijId, governmentId, ministerId, usersId, kabinetId,
adminId, kanselarijId, overheidId, ministerId, usersId, kabinetId,
} = CONFIG;
const roles = [adminId, kanselarijId, governmentId, ministerId, usersId, kabinetId];
const roles = [adminId, kanselarijId, overheidId, ministerId, usersId, kabinetId];
return roles.includes(userRoleId);
},

Expand All @@ -103,9 +103,9 @@ export default Service.extend({
userRoleId,
} = this;
const {
adminId, kanselarijId, governmentId, ministerId, kabinetId,
adminId, kanselarijId, overheidId, ministerId, kabinetId,
} = CONFIG;
const roles = [adminId, kanselarijId, governmentId, ministerId, kabinetId];
const roles = [adminId, kanselarijId, overheidId, ministerId, kabinetId];
return roles.includes(userRoleId);
},

Expand Down
2 changes: 1 addition & 1 deletion app/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default EmberObject.create({
numbersBylatinAdverbialNumberals,
adminId: '71c068e6-d2f0-43de-93ab-cd1e7156ac4b',
kanselarijId: '50f4c79c-902d-4ad2-bca1-0f37a69f0c13',
governmentId: '3e824494-bbe7-45cf-aed8-5828970a10dc', // TODO: Rename to overheidId?
overheidId: '3e824494-bbe7-45cf-aed8-5828970a10dc',
ministerId: '1cc0710c-1b28-4e23-b3ff-399c8089bc71',
kabinetId: '7e8c0c9c-05ec-49fd-9e96-fc54ebf3f9eb',
usersId: '450915b2-4c64-4b03-9caa-71180400f831',
Expand Down

0 comments on commit 0a27411

Please sign in to comment.