hasPermissionByName Fixed