Remove duplicate elements from permission lists