fix(editor): Fix RBAC type errors (no-changelog) (#9435)

This commit is contained in:
Alex Grozav
2024-05-17 13:29:47 +03:00
committed by GitHub
parent 48588194b9
commit 6aec42069c
8 changed files with 16 additions and 11 deletions

View File

@@ -4,8 +4,8 @@ import type { DefaultUserMiddlewareOptions } from '@/types/rbac';
import { isDefaultUser } from '@/rbac/checks';
export const defaultUserMiddleware: RouterMiddleware<DefaultUserMiddlewareOptions> = async (
to,
from,
_to,
_from,
next,
) => {
const valid = isDefaultUser();