trovesuite 1.0.34__py3-none-any.whl → 1.0.35__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -329,7 +329,14 @@ class AuthService:
329
329
  logger.error(f"Error querying permissions for role {role_id}: {str(e)}", exc_info=True)
330
330
  permissions = []
331
331
 
332
- role_dict = {**role, "tenant_id": tenant_id, "permissions": [p['permission_id'] for p in permissions]}
332
+ role_user_id = role.get("user_id") if hasattr(role, "get") else None
333
+ # Ensure user_id is always present (group roles can have user_id NULL)
334
+ role_dict = {
335
+ **role,
336
+ "user_id": role_user_id or user_id,
337
+ "tenant_id": tenant_id,
338
+ "permissions": [p['permission_id'] for p in permissions],
339
+ }
333
340
  get_user_roles_with_tenant_and_permissions.append(role_dict)
334
341
 
335
342
  roles_dto = Helper.map_to_dto(get_user_roles_with_tenant_and_permissions, AuthServiceReadDto)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trovesuite
3
- Version: 1.0.34
3
+ Version: 1.0.35
4
4
  Summary: TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications
5
5
  Home-page: https://dev.azure.com/brightgclt/trovesuite/_git/packages
6
6
  Author: Bright Debrah Owusu
@@ -3,7 +3,7 @@ trovesuite/auth/__init__.py,sha256=OjZllVvjul1glDazJ-d5TrNjgHFigFlQQi1G99DYshk,2
3
3
  trovesuite/auth/auth_base.py,sha256=rZHQVLeJRBQ8GClgF5UwG-er4_HXVX5-nt8o6_Z29uY,75
4
4
  trovesuite/auth/auth_controller.py,sha256=PAgaVlf5TYEfkSfK4vGGsvO84i8zEmeVVXyUF2YBppI,420
5
5
  trovesuite/auth/auth_read_dto.py,sha256=e27JqKVPVUM83A_mYF452QCflsvGNo7aKje7q_urwFc,571
6
- trovesuite/auth/auth_service.py,sha256=h98y4_ELas52tdTPkr1kcGv_JrL95HUFKAWWljoCCac,22282
6
+ trovesuite/auth/auth_service.py,sha256=nHwfkD5D6v0QwYC68U-nCBnIwlZcGQSI0ZJx4mtXBbs,22589
7
7
  trovesuite/auth/auth_write_dto.py,sha256=rdwI7w6-9QZGv1H0PAGrjkLBCzaMHjgPIXeLb9RmNec,234
8
8
  trovesuite/configs/__init__.py,sha256=h1mSZOaZ3kUy1ZMO_m9O9KklsxywM0RfMVZLh9h9WvQ,328
9
9
  trovesuite/configs/database.py,sha256=kUJWTh51C-CfUDq0HojA4QnQdnq5W8fHv-IJCHFXcW8,15008
@@ -27,8 +27,8 @@ trovesuite/storage/storage_write_dto.py,sha256=vl1iCZ93bpFmpvkCrn587QtMtOA_TPDse
27
27
  trovesuite/utils/__init__.py,sha256=mDZuY77BphvQFYLmcWxjP5Tcq9ZZ3WXJWBKB1v6wzHU,185
28
28
  trovesuite/utils/helper.py,sha256=qpd-EWPaX3-QJA5xvxb4s9rEb9W2RKPCDXcdAKSUwSM,30858
29
29
  trovesuite/utils/templates.py,sha256=OCGVP-KKX2zQopDMilHYkjjhHYpHxwqhbkFkzus0CQA,23906
30
- trovesuite-1.0.34.dist-info/licenses/LICENSE,sha256=EJT35ct-Q794JYPdAQy3XNczQGKkU1HzToLeK1YVw2s,1070
31
- trovesuite-1.0.34.dist-info/METADATA,sha256=G72viTpBpUIrbwgB09VKA-T7CNGSmtKxuxFZQ29ofVs,21737
32
- trovesuite-1.0.34.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
33
- trovesuite-1.0.34.dist-info/top_level.txt,sha256=GzKhG_-MTaxeHrIgkGkBH_nof2vroGFBrjeHKWUIwNc,11
34
- trovesuite-1.0.34.dist-info/RECORD,,
30
+ trovesuite-1.0.35.dist-info/licenses/LICENSE,sha256=EJT35ct-Q794JYPdAQy3XNczQGKkU1HzToLeK1YVw2s,1070
31
+ trovesuite-1.0.35.dist-info/METADATA,sha256=VQCGJpA7bHoAlpZSTx6q2AZZ-WxcJBYyvn5-qKPZZPg,21737
32
+ trovesuite-1.0.35.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
33
+ trovesuite-1.0.35.dist-info/top_level.txt,sha256=GzKhG_-MTaxeHrIgkGkBH_nof2vroGFBrjeHKWUIwNc,11
34
+ trovesuite-1.0.35.dist-info/RECORD,,