fixes #6482 - remove duplicates from permission resources