 Berachot 19b records a discussion in which a tradition that rabbis have such authority was explicitly considered but rejected.The Shulkhan Arukh, a seminal code of Jewish law, used a dramatic example to illustrate its holding that "kevod habriyot" does not override Biblical prohibitions.It held that an observant Jew who becomes aware of Biblically prohibited clothing should remove it immediately even if it leaves a colleague naked in a public place, illustrating that biblical prohibitions trump even strong considerations of modesty and even great public embarrassment.