Introduce account preferences to remember user's previous location (#4126)
This commit is contained in:
@@ -22,7 +22,11 @@ import {
|
||||
AllowNull,
|
||||
} from "sequelize-typescript";
|
||||
import { languages } from "@shared/i18n";
|
||||
import { CollectionPermission } from "@shared/types";
|
||||
import {
|
||||
CollectionPermission,
|
||||
UserPreference,
|
||||
UserPreferences,
|
||||
} from "@shared/types";
|
||||
import { stringToColor } from "@shared/utils/color";
|
||||
import env from "@server/env";
|
||||
import { ValidationError } from "../errors";
|
||||
@@ -54,12 +58,6 @@ export enum UserRole {
|
||||
Viewer = "viewer",
|
||||
}
|
||||
|
||||
export enum UserPreference {
|
||||
RememberLastPath = "rememberLastPath",
|
||||
}
|
||||
|
||||
export type UserPreferences = { [key in UserPreference]?: boolean };
|
||||
|
||||
@Scopes(() => ({
|
||||
withAuthentications: {
|
||||
include: [
|
||||
|
||||
Reference in New Issue
Block a user