Fixes #12278 - make sure permission set is uniq for role
If default user has two or more filters with same permission (valid setup), the verification of found collection failed. This patch make the list uniq and the check correctly verifies whether all permissions were found.
Related issues
Bug #12278: Foreman fails when creating a role if default user has 2 or more filters with same permission
Fixes #12278 - make sure permission set is uniq for role
If default user has two or more filters with same permission (valid
setup), the verification of found collection failed. This patch
make the list uniq and the check correctly verifies whether all
permissions were found.