From ea3252d3e778c1c05326e62a19c642166881d77b Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Tue, 9 Jan 2024 23:57:53 +0530 Subject: [PATCH] remove old unnecesary changes --- apps/meteor/app/authorization/client/hasPermission.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/meteor/app/authorization/client/hasPermission.ts b/apps/meteor/app/authorization/client/hasPermission.ts index bf368b288e0b..e3bb0776a516 100644 --- a/apps/meteor/app/authorization/client/hasPermission.ts +++ b/apps/meteor/app/authorization/client/hasPermission.ts @@ -45,8 +45,7 @@ const createPermissionValidator = } if (hasIsUserInRole(model)) { - const hasRole = model.isUserInRole(userId, roleId, scope); - return hasRole; + return model.isUserInRole(userId, roleId, scope); } return undefined;