Skip to content

Commit

Permalink
fix roles
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhollmann committed May 21, 2024
1 parent ea7be73 commit 35d271c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function create(request: Request, response: Response, next: NextFunction)
const user: User = response.locals.user;
const body = request.body as { name: string; users: any; fir: "edww" | "edgg" | "edmm" | "none" };

PermissionHelper.checkUserHasPermission(user, "ln.mentor_group.create");
PermissionHelper.checkUserHasPermission(user, "lm.mentor_group.create");

Validator.validate(body, {
name: [ValidationTypeEnum.NON_NULL],
Expand Down
2 changes: 1 addition & 1 deletion backend/src/controllers/permission/RoleAdminController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function create(request: Request, response: Response, next: NextFunction)
try {
const user: User = response.locals.user;
const body = request.body as { name: string };
PermissionHelper.checkUserHasPermission(user, "tech.role_management.role.edit");
PermissionHelper.checkUserHasPermission(user, "tech.role_management.edit");

Validator.validate(body, {
name: [ValidationTypeEnum.NON_NULL],
Expand Down

0 comments on commit 35d271c

Please sign in to comment.