abs-auth-rbac-core 0.1.16__py3-none-any.whl → 0.1.17__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.

Potentially problematic release.


This version of abs-auth-rbac-core might be problematic. Click here for more details.

@@ -213,7 +213,7 @@ class RBACService:
213
213
  self.revoke_user_permissions(user_uuid,list(remove_permissions))
214
214
  if add_permissions:
215
215
  self.attach_permissions_to_user(user_uuid,list(add_permissions))
216
- return self.get_user_permissions(user_uuid)
216
+ return self.get_user_only_permissions(user_uuid)
217
217
 
218
218
  def attach_permissions_to_user(self, user_uuid: str, permission_uuids: List[str]):
219
219
  with self.db() as session:
@@ -233,7 +233,7 @@ class RBACService:
233
233
  if added_policies:
234
234
  self.enforcer.save_policy()
235
235
  self.enforcer.load_policy()
236
- return self.get_user_permissions(user_uuid)
236
+ return self.get_user_only_permissions(user_uuid)
237
237
 
238
238
 
239
239
  def revoke_user_permissions(self, user_uuid: str, permission_uuids: List[str]):
@@ -254,7 +254,7 @@ class RBACService:
254
254
  self.enforcer.load_policy()
255
255
  user_permissions.delete(synchronize_session=False)
256
256
  session.commit()
257
- return True
257
+ return self.get_user_only_permissions(user_uuid)
258
258
 
259
259
  def list_roles(self) -> Any:
260
260
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: abs-auth-rbac-core
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: RBAC and Auth core utilities including JWT token management.
5
5
  License: MIT
6
6
  Author: AutoBridgeSystems
@@ -17,11 +17,11 @@ abs_auth_rbac_core/models/user_role.py,sha256=20pqmtJPzlUrI9ulHGouk8XlFgrGG7I6ik
17
17
  abs_auth_rbac_core/rbac/__init__.py,sha256=oYjtpmfrkEbwWCBAWuRoU1fM4fCpBxkF_lwQrelK1As,79
18
18
  abs_auth_rbac_core/rbac/decorator.py,sha256=pEFAW0Nn2iE4KBctPhNOmO_VLeJFDX2V9v2LsCu6kHY,1824
19
19
  abs_auth_rbac_core/rbac/policy.conf,sha256=wghhhKxgZH0rPhh1QFrIpq9nevJT3s7OxxvXiU3zzuI,305
20
- abs_auth_rbac_core/rbac/service.py,sha256=zphCthuPGe_oRN6kMhGFzu4S-nOO8zPlI59qGeE62ZY,37048
20
+ abs_auth_rbac_core/rbac/service.py,sha256=KAtD5ahz73KyCjXypg2xSiD1xsrPEiUxF-EHVrvN8yc,37095
21
21
  abs_auth_rbac_core/schema/__init__.py,sha256=v9xibJ8Wr9k0u6PEYNK0LCGUJD71SB5vxu9BZG0S7tM,46
22
22
  abs_auth_rbac_core/schema/permission.py,sha256=XvxPU68FY0PFgkF4GR2bSrzNvFB8c8OgY_d0JOJvMc8,203
23
23
  abs_auth_rbac_core/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  abs_auth_rbac_core/util/permission_constants.py,sha256=ICnn7mDoNt4_adUcbMjWtBeY2MgJu4F9qS5jRgR3nNU,92039
25
- abs_auth_rbac_core-0.1.16.dist-info/METADATA,sha256=CPCikBY4I10HbHfW0kYYG8Z5k73h8kpR3ERmDVeW1Kk,6689
26
- abs_auth_rbac_core-0.1.16.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
- abs_auth_rbac_core-0.1.16.dist-info/RECORD,,
25
+ abs_auth_rbac_core-0.1.17.dist-info/METADATA,sha256=cdBGNOH3VUl2xvmjQdrxF5p9JYN0FfOByUuQpO-Whs4,6689
26
+ abs_auth_rbac_core-0.1.17.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
+ abs_auth_rbac_core-0.1.17.dist-info/RECORD,,