LPS-44079 wrong permission checking