Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 55fe59d

Browse files
#37 - Allow ubahn role DELETE permission
1 parent a5cf547 commit 55fe59d

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

src/modules/achievement/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:achievement', 'all:achievement']
5252
}
5353
}

src/modules/achievementsProvider/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:achievementsProvider', 'all:achievementsProvider']
5252
}
5353
}

src/modules/attribute/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:attribute', 'all:attribute']
5252
}
5353
}

src/modules/attributeGroup/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:attributeGroup', 'all:attributeGroup']
5252
}
5353
}

src/modules/externalProfile/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:externalProfile', 'all:externalProfile']
5252
}
5353
}

src/modules/organization/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:organization', 'all:organization']
5252
}
5353
}

src/modules/organizationSkillsProvider/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
delete: {
4242
method: Controller.remove,
4343
auth: 'jwt',
44-
access: consts.AdminUser,
44+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
4545
scopes: ['delete:organizationSkillsProvider', 'all:organizationSkillsProvider']
4646
}
4747
}

src/modules/role/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:role', 'all:role']
5252
}
5353
}

src/modules/skill/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:skill', 'all:skill']
5252
}
5353
}

src/modules/skillsProvider/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:skillsProvider', 'all:skillsProvider']
5252
}
5353
}

src/modules/user/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
delete: {
4949
method: Controller.remove,
5050
auth: 'jwt',
51-
access: consts.AdminUser,
51+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5252
scopes: ['delete:user', 'all:user']
5353
}
5454
}

src/modules/usersAttribute/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
delete: {
4848
method: Controller.remove,
4949
auth: 'jwt',
50-
access: consts.AdminUser,
50+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
5151
scopes: ['delete:userAttribute', 'all:userAttribute']
5252
}
5353
}

src/modules/usersRole/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
delete: {
4242
method: Controller.remove,
4343
auth: 'jwt',
44-
access: consts.AdminUser,
44+
access: [...consts.AdminUser, consts.UserRoles.ubahn],
4545
scopes: ['delete:usersRole', 'all:usersRole']
4646
}
4747
}

0 commit comments

Comments
 (0)