1
0
Fork 0
mirror of synced 2024-06-13 16:05:06 +12:00
This commit is contained in:
Martin McKeaveney 2021-10-12 20:19:32 +01:00
parent 3f279d8d0f
commit ed9574b815
3 changed files with 4 additions and 8 deletions

View file

@ -19,10 +19,7 @@ const accounts = require("./cloud/accounts")
const { hash } = require("./hashing")
const userCache = require("./cache/user")
const env = require("./environment")
const {
getSessionsForUser,
invalidateSessions,
} = require("./security/sessions")
const { getUserSessions, invalidateSessions } = require("./security/sessions")
const APP_PREFIX = DocumentTypes.APP + SEPARATOR
@ -249,7 +246,7 @@ exports.platformLogout = async ({
sessionId,
keepActiveSession,
}) => {
let sessions = await getSessionsForUser(userId)
let sessions = await getUserSessions(userId)
if (keepActiveSession) {
sessions = sessions.filter(session => session.sessionId !== sessionId)

View file

@ -32,7 +32,7 @@
const FORMULA_TYPE = FIELDS.FORMULA.type
const LINK_TYPE = FIELDS.LINK.type
const dispatch = createEventDispatcher()
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev"]
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev", "tableId"]
const { hide } = getContext(Context.Modal)
let fieldDefinitions = cloneDeep(FIELDS)
@ -206,7 +206,7 @@
bind:value={field.name}
disabled={uneditable || (linkEditDisabled && field.type === LINK_TYPE)}
error={columnNameInvalid
? "type, _id and _rev are disallowed as column names"
? `${PROHIBITED_COLUMN_NAMES.join(", ")} are not allowed as column names`
: ""}
/>

View file

@ -156,7 +156,6 @@ module PostgresModule {
let newConfig = {
...this.config,
// ssl: this.config.ssl ? { rejectUnauthorized: true } : undefined,
ssl: this.config.ssl
? {
rejectUnauthorized: this.config.rejectUnauthorized,