First Commit. Duplicate bunext-sqlite preset

This commit is contained in:
2026-10-18 16:47:11 +01:00
commit 81e4a8aecc
718 changed files with 41695 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import type { BUN_SQLITE_BSQLITE_USER_TYPES } from "@/db/types/db";
type Params = {
user_types?: BUN_SQLITE_BSQLITE_USER_TYPES[] | null;
};
/**
* Whether this is a `read_only` user
*/
export default function isReadOnlyUser({ user_types }: Params): boolean {
return Boolean(user_types?.find((ty) => ty.user_type == "read_only"));
}