Upate permissionResultClass() from if to case statement