UN is not necessarily saying it's ok to be a terrorist. It's merely saying that Israelis are not allowed to defend themselves against terrorists. After all, the Israelis are mostly Jews.
Monitor group: Airstrikes hit rebel-held areas of Aleppo, Syria (Reuters)
from the article: Netanyahu calls UN Gaza probe a 'kangaroo court' against Israel