Remove duplicate ids when on create_multi_ids_permission.
@@ -347,7 +347,7 @@ def create_multi_ids_permission(ids: typing.List[int], id_type: int, permission:
:param id_type: Type of the id.
:param permission: State of the permission. ``True`` to allow access, ``False to disallow access.
"""
- return [create_permission(id, id_type, permission) for id in ids]
+ return [create_permission(id, id_type, permission) for id in set(ids)]
def generate_permissions(
