First Commit. Duplicate bunext-sqlite preset
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
Reference in New Issue
Block a user