abs-auth-rbac-core 0.1.13__py3-none-any.whl → 0.1.14__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.
- abs_auth_rbac_core/rbac/service.py +4 -1
- {abs_auth_rbac_core-0.1.13.dist-info → abs_auth_rbac_core-0.1.14.dist-info}/METADATA +1 -1
- {abs_auth_rbac_core-0.1.13.dist-info → abs_auth_rbac_core-0.1.14.dist-info}/RECORD +4 -4
- {abs_auth_rbac_core-0.1.13.dist-info → abs_auth_rbac_core-0.1.14.dist-info}/WHEEL +0 -0
|
@@ -104,7 +104,10 @@ class RBACService:
|
|
|
104
104
|
"""
|
|
105
105
|
with self.db() as session:
|
|
106
106
|
try:
|
|
107
|
-
|
|
107
|
+
if hasattr(permissions[0], "model_dump"):
|
|
108
|
+
permission_objs = [Permission(**permission.model_dump()) for permission in permissions]
|
|
109
|
+
else:
|
|
110
|
+
permission_objs = [Permission(**permission) for permission in permissions]
|
|
108
111
|
session.bulk_save_objects(permission_objs)
|
|
109
112
|
session.commit()
|
|
110
113
|
return permission_objs
|
|
@@ -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=
|
|
20
|
+
abs_auth_rbac_core/rbac/service.py,sha256=xOG-tReDkvxJg4npWJIdS_S82U2sJJilcOsZotEYB1U,32888
|
|
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.
|
|
26
|
-
abs_auth_rbac_core-0.1.
|
|
27
|
-
abs_auth_rbac_core-0.1.
|
|
25
|
+
abs_auth_rbac_core-0.1.14.dist-info/METADATA,sha256=OIzt2mP-ylG3n8BR3qfstFleu9pv0nBMufjzZJGb-8A,6636
|
|
26
|
+
abs_auth_rbac_core-0.1.14.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
27
|
+
abs_auth_rbac_core-0.1.14.dist-info/RECORD,,
|
|
File without changes
|