Skip to content

Commit

Permalink
[fix] async
Browse files Browse the repository at this point in the history
  • Loading branch information
SNex21 committed Jun 29, 2024
1 parent ae533d3 commit 5924e14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sqladmin/_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def __init__(
super().__init__(name=name, icon=icon)
self.view = view

def is_visible(self, request: Request) -> bool:
return self.view.is_visible(request)
async def is_visible(self, request: Request) -> bool:
return await self.view.is_visible(request)

def is_accessible(self, request: Request) -> bool:
return self.view.is_accessible(request)
async def is_accessible(self, request: Request) -> bool:
return await self.view.is_accessible(request)

def is_active(self, request: Request) -> bool:
return self.view.identity == request.path_params.get("identity")
Expand Down

0 comments on commit 5924e14

Please sign in to comment.