helper isErrPerm