Skip to content

Commit bcf508d

Browse files
committed
Fix for new perms format
1 parent e9e510d commit bcf508d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sonar/permissions/aggregation_permissions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
from __future__ import annotations
2424
from sonar.util import types
25+
from sonar import logging as log
2526
from sonar.permissions import permissions, project_permissions
2627

2728
AGGREGATION_PERMISSIONS = {
@@ -49,4 +50,4 @@ def set(self, new_perms: types.JsonPermissions) -> AggregationPermissions:
4950
:return: Permissions associated to the aggregation
5051
:rtype: self
5152
"""
52-
return super().set(permissions.white_list(new_perms, AGGREGATION_PERMISSIONS))
53+
return super().set(permissions.white_list(permissions.list_to_dict(new_perms), AGGREGATION_PERMISSIONS))

0 commit comments

Comments
 (0)