Skip to content

Commit

Permalink
perf: 升级casbin到v1.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amisadmin committed Sep 23, 2023
1 parent f57c457 commit 6fcc6df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastapi_user_auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.6.1"
__version__ = "0.6.2a3"
__url__ = "https://github.com/amisadmin/fastapi_user_auth"

import gettext
Expand Down
2 changes: 1 addition & 1 deletion fastapi_user_auth/admin/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def get_init_data(self, request: Request, **kwargs) -> BaseApiOut[Any]:
subject = await self.get_subject_by_id(item_id)
if not subject:
return BaseApiOut(status=0, msg="暂不支持的模型")
role_keys = await self.site.auth.enforcer.get_implicit_roles_for_user(subject)
role_keys = await self.site.auth.enforcer.get_roles_for_user(subject)
return BaseApiOut(data=self.schema(role_keys=",".join(role_keys).replace("r:", "")))

async def handle(self, request: Request, item_id: List[str], data: schema, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
"email-validator>=1.3.1,<2.0.0",
"passlib>=1.7.4",
"bcrypt>=4.0.0",
"casbin>=1.23.0",
"casbin>=1.29.0",
"sqlmodelx>=0.0.5",
]

Expand Down

0 comments on commit 6fcc6df

Please sign in to comment.