Hide EmojiReact from inbox
This commit is contained in:
parent
7fa455d797
commit
159adaba94
2 changed files with 15 additions and 2 deletions
|
@ -88,8 +88,11 @@ async def render_template(
|
|||
db_session: AsyncSession,
|
||||
request: Request,
|
||||
template: str,
|
||||
template_args: dict[str, Any] = {},
|
||||
template_args: dict[str, Any] | None = None,
|
||||
) -> TemplateResponse:
|
||||
if template_args is None:
|
||||
template_args = {}
|
||||
|
||||
is_admin = False
|
||||
is_admin = is_current_user_admin(request)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue