Skip to content

Commit

Permalink
fix: rbac-perm-deletion-wrong-type (#423)
Browse files Browse the repository at this point in the history
The controller had the wrong type as input, namely for entity, relation and rule the input was integer but this should've been a string.
  • Loading branch information
SvenMokveldje authored Jan 12, 2025
1 parent 8475aa1 commit ecee703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controller/rbac-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ export default class RbacController extends BaseController {
* @operationId deletePermission
* @tags rbac - Operations of the rbac controller
* @param {integer} id.path.required - The ID of the role
* @param {integer} entity.path.required - The entity of the permission
* @param {integer} action.path.required - The action of the permission
* @param {integer} relation.path.required - The relation of the permission
* @param {string} entity.path.required - The entity of the permission
* @param {string} action.path.required - The action of the permission
* @param {string} relation.path.required - The relation of the permission
* @return {string} 204 - Success
* @return {string} 404 - Role not found error
* @return {string} 404 - Permission not found error
Expand Down

0 comments on commit ecee703

Please sign in to comment.