fetching the profile should error normally

This commit is contained in:
Johannes Zellner
2025-12-08 19:17:56 +01:00
parent 2f40eeb49f
commit c2e981b35a
-5
View File
@@ -46,11 +46,6 @@ function create() {
error = e;
}
if (error || result.status !== 200) {
console.error('Failed to get profile.', error || result.status);
return [];
}
if (error || result.status !== 200) return [error || result];
result.body.isAtLeastUserManager = [ ROLES.OWNER, ROLES.ADMIN, ROLES.MAIL_MANAGER, ROLES.USER_MANAGER ].indexOf(result.body.role) !== -1;