ENCOA-97: Now it allows the user to write the name of the country in english

This commit is contained in:
Tiago Ribeiro
2024-08-22 16:15:25 +01:00
parent cfcff3cf3b
commit 326d305a69
3 changed files with 8 additions and 3 deletions

View File

@@ -9,12 +9,10 @@ export function checkAccess(user: User, types: Type[], permissions?: PermissionT
// if(user.type === '') {
if (!user.type) {
console.warn("User type is empty");
return false;
}
if (types.length === 0) {
console.warn("No types provided");
return false;
}