strapi-plugin-magic-sessionmanager 4.19.1 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +136 -1
- package/dist/admin/{Analytics-BqFlgLnN.mjs → Analytics-B-MVQ6dQ.mjs} +1 -1
- package/dist/admin/{Analytics-BElmzyNJ.js → Analytics-B5GnwMtH.js} +1 -1
- package/dist/admin/{App-0thsC_P9.mjs → App-DzbP5VPQ.mjs} +2 -2
- package/dist/admin/{App-D_J2eeEG.js → App-xBOmg4g9.js} +2 -2
- package/dist/admin/{OnlineUsersWidget-BgJ1ws-5.mjs → OnlineUsersWidget-Bf3BICmx.mjs} +1 -1
- package/dist/admin/{OnlineUsersWidget-DMZBwqdY.js → OnlineUsersWidget-FuPPPCCV.js} +1 -1
- package/dist/admin/{Settings-FOkui_ke.js → Settings-WRIXHLDa.js} +280 -65
- package/dist/admin/{Settings-QN3Mu4AQ.mjs → Settings-hpkloyO6.mjs} +250 -35
- package/dist/admin/{de-uGKSKVYD.mjs → de-Bzd14FzX.mjs} +63 -1
- package/dist/admin/{de-CEyi4lpp.js → de-Uqb30N5n.js} +63 -1
- package/dist/admin/{en-CSXeJYKy.js → en-CDBcocLk.js} +63 -1
- package/dist/admin/{en-Yu7tfwqx.mjs → en-DovyVwa5.mjs} +63 -1
- package/dist/admin/{es-iNG9Amf9.mjs → es-BygJxl1J.mjs} +63 -1
- package/dist/admin/{es-BrKqXhAU.js → es-DA1X0RPv.js} +63 -1
- package/dist/admin/{fr-DKZNfdlH.js → fr-CPPA27jW.js} +63 -1
- package/dist/admin/{fr-CaFICHlf.mjs → fr-DONxL73-.mjs} +63 -1
- package/dist/admin/{index-h-ksmM8A.mjs → index-DsaGGK7x.mjs} +627 -61
- package/dist/admin/{index-DEYtqPc3.js → index-Q_D-5LlE.js} +612 -46
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/{pt-IEagyVDL.js → pt-BMuwyaan.js} +63 -1
- package/dist/admin/{pt-Bz2hWVrq.mjs → pt-D2yGNz2N.mjs} +63 -1
- package/dist/admin/{settingsTabs-D02CuEvs.mjs → settingsTabs--7IsqMdn.mjs} +5 -1
- package/dist/admin/{settingsTabs-N4TFn-mw.js → settingsTabs-Dxlevody.js} +5 -1
- package/dist/server/index.js +1485 -19
- package/dist/server/index.mjs +1485 -19
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
-
import { useState,
|
|
2
|
+
import { useState, createContext, useContext, useMemo, useId, Fragment, useRef, useEffect, useCallback, useLayoutEffect } from "react";
|
|
3
3
|
import { Field, Typography, Switch, Box, TextInput, Flex, Button, Link, SingleSelect, SingleSelectOption, Accordion, Table, Thead, Tr, Th, VisuallyHidden, Tbody, Td, Modal, NumberInput, IconButton, Alert, Badge, Radio, Loader, EmptyStateLayout, Textarea, Dialog, Tag, Combobox, ComboboxOption, Divider, Tabs, Checkbox } from "@strapi/design-system";
|
|
4
4
|
import { useFetchClient, useNotification, useRBAC, ConfirmDialog, useQueryParams, Page, Form, Blocker, useForm } from "@strapi/strapi/admin";
|
|
5
|
-
import { EyeStriked, Eye, Key, Duplicate, Plus, Pencil, Trash, Lock, ArrowClockwise, Cross, Download, Check } from "@strapi/icons";
|
|
5
|
+
import { EyeStriked, Eye, Key, Duplicate, Plus, Pencil, Trash, Lock, ArrowClockwise, Cross, Download, Check, SignOut } from "@strapi/icons";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { y as ReadableParagraphs,
|
|
8
|
-
import
|
|
9
|
-
import { v as buildTabSearch, x as buildSelectOptions, u as useElementWidth, b as RowActions, s as shouldIsolateActionKey, y as SELECT_PRESETS, z as fieldHasError, B as getRiskAvailability, C as riskDependentControl, E as usesLocalDatabase, F as getErrorTab, G as buildSavePayload, q as SETTINGS_FIELD_LABELS, H as getVisibleSettingsTabs, I as resolveSettingsTab, J as getRevealScrollDelta, t as SETTINGS_TAB_LABELS } from "./settingsTabs
|
|
7
|
+
import { y as ReadableParagraphs, z as useSettingsTranslate, l as logSafeAdminError, R as ReadableText, f as pluginId, n as isCancelledRequest, h as PersistentAlert, A as EqualGrid, u as useSessionFormatters, j as pluginPermissions, C as ConfirmAction, P as PropertyList, B as formatSessionDate, F as refocusIfLost, G as copyText, H as requireSuccessfulMutation, q as PageShell } from "./index-DsaGGK7x.mjs";
|
|
8
|
+
import "react-intl";
|
|
9
|
+
import { v as buildTabSearch, x as buildSelectOptions, u as useElementWidth, b as RowActions, s as shouldIsolateActionKey, y as SELECT_PRESETS, z as fieldHasError, B as getRiskAvailability, C as riskDependentControl, E as usesLocalDatabase, F as getErrorTab, G as buildSavePayload, q as SETTINGS_FIELD_LABELS, H as getVisibleSettingsTabs, I as resolveSettingsTab, J as getRevealScrollDelta, t as SETTINGS_TAB_LABELS } from "./settingsTabs--7IsqMdn.mjs";
|
|
10
10
|
import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
|
|
11
11
|
import { EmptyPermissions } from "@strapi/icons/symbols";
|
|
12
12
|
const FieldFrame = styled.div`
|
|
@@ -286,18 +286,6 @@ const SecretTextInput = ({
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
};
|
|
289
|
-
function useSettingsTranslate() {
|
|
290
|
-
const { formatMessage, locale } = useIntl();
|
|
291
|
-
const t = useCallback(
|
|
292
|
-
(id, defaultMessage, values) => formatMessage({ id: getTranslation(id), defaultMessage }, values),
|
|
293
|
-
[formatMessage]
|
|
294
|
-
);
|
|
295
|
-
const tError = useCallback(
|
|
296
|
-
(descriptor) => descriptor ? t(descriptor.messageId, descriptor.defaultMessage, descriptor.values) : void 0,
|
|
297
|
-
[t]
|
|
298
|
-
);
|
|
299
|
-
return { t, tError, locale };
|
|
300
|
-
}
|
|
301
289
|
const EnvPreview = styled(Box)`
|
|
302
290
|
overflow-wrap: anywhere;
|
|
303
291
|
|
|
@@ -690,8 +678,8 @@ function sortLocks(locks) {
|
|
|
690
678
|
return Number.isFinite(until) && until !== 0 ? until : String(a.id).localeCompare(b.id);
|
|
691
679
|
});
|
|
692
680
|
}
|
|
693
|
-
const TABLE_MIN_WIDTH$
|
|
694
|
-
const keepActionKeys$
|
|
681
|
+
const TABLE_MIN_WIDTH$2 = 640;
|
|
682
|
+
const keepActionKeys$2 = (event) => {
|
|
695
683
|
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
696
684
|
};
|
|
697
685
|
const EMPTY_DRAFT = Object.freeze({
|
|
@@ -778,10 +766,10 @@ const RoleRulesSection = ({ form }) => {
|
|
|
778
766
|
};
|
|
779
767
|
const fieldError = (key) => showErrors ? tError(draftErrors[key]) : void 0;
|
|
780
768
|
const availableRoles = (roles || []).filter((role) => !taken.includes(role.documentId));
|
|
781
|
-
const asTable = width === 0 || width >= TABLE_MIN_WIDTH$
|
|
769
|
+
const asTable = width === 0 || width >= TABLE_MIN_WIDTH$2;
|
|
782
770
|
const actions = (rule) => {
|
|
783
771
|
const name = roleName(rule.role);
|
|
784
|
-
return /* @__PURE__ */ jsxs(RowActions, { onKeyDown: keepActionKeys$
|
|
772
|
+
return /* @__PURE__ */ jsxs(RowActions, { onKeyDown: keepActionKeys$2, children: [
|
|
785
773
|
/* @__PURE__ */ jsx(
|
|
786
774
|
IconButton,
|
|
787
775
|
{
|
|
@@ -2110,7 +2098,9 @@ const SETTINGS_DEFAULTS = Object.freeze({
|
|
|
2110
2098
|
securityLogGeoLookup: false,
|
|
2111
2099
|
securityLogRetentionDays: 90,
|
|
2112
2100
|
...POLICY_FORM_DEFAULTS,
|
|
2113
|
-
...SIGNALS_FORM_DEFAULTS
|
|
2101
|
+
...SIGNALS_FORM_DEFAULTS,
|
|
2102
|
+
// Impersonation of app users (4.20), off by default.
|
|
2103
|
+
impersonationEnabled: false
|
|
2114
2104
|
});
|
|
2115
2105
|
const WRITE_ONLY_SETTINGS_KEYS = Object.freeze([
|
|
2116
2106
|
"discordWebhookUrl",
|
|
@@ -2235,8 +2225,8 @@ function getAdjustedFields(submitted, stored, previous) {
|
|
|
2235
2225
|
(key) => !WRITE_ONLY_SETTINGS_KEYS.includes(key) && !areSettingsEqual(source[key], stored?.[key]) && (previous === void 0 || !areSettingsEqual(source[key], previous?.[key]))
|
|
2236
2226
|
);
|
|
2237
2227
|
}
|
|
2238
|
-
const TABLE_MIN_WIDTH = 640;
|
|
2239
|
-
const keepActionKeys = (event) => {
|
|
2228
|
+
const TABLE_MIN_WIDTH$1 = 640;
|
|
2229
|
+
const keepActionKeys$1 = (event) => {
|
|
2240
2230
|
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
2241
2231
|
};
|
|
2242
2232
|
const LockTarget = ({ lock }) => {
|
|
@@ -2356,7 +2346,7 @@ const LockedNowCard = () => {
|
|
|
2356
2346
|
}
|
|
2357
2347
|
};
|
|
2358
2348
|
const showActions = !permissionsLoading && canUnlock;
|
|
2359
|
-
const asTable = width === 0 || width >= TABLE_MIN_WIDTH;
|
|
2349
|
+
const asTable = width === 0 || width >= TABLE_MIN_WIDTH$1;
|
|
2360
2350
|
const unlockAction = (lock) => showActions ? /* @__PURE__ */ jsx(
|
|
2361
2351
|
ConfirmAction,
|
|
2362
2352
|
{
|
|
@@ -2423,7 +2413,7 @@ const LockedNowCard = () => {
|
|
|
2423
2413
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(KindBadge, { kind: lock.kind }) }),
|
|
2424
2414
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: lock.failures }) }),
|
|
2425
2415
|
/* @__PURE__ */ jsx(Td, { children: ends(lock) }),
|
|
2426
|
-
showActions ? /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: unlockAction(lock) }) }) : null
|
|
2416
|
+
showActions ? /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys$1, children: unlockAction(lock) }) }) : null
|
|
2427
2417
|
] }, lock.id)) })
|
|
2428
2418
|
] }) });
|
|
2429
2419
|
} else {
|
|
@@ -2446,7 +2436,7 @@ const LockedNowCard = () => {
|
|
|
2446
2436
|
}) })
|
|
2447
2437
|
] })
|
|
2448
2438
|
] }),
|
|
2449
|
-
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: unlockAction(lock) })
|
|
2439
|
+
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys$1, children: unlockAction(lock) })
|
|
2450
2440
|
] })
|
|
2451
2441
|
},
|
|
2452
2442
|
lock.id
|
|
@@ -5208,15 +5198,239 @@ const AdminActivityTab = ({ form }) => {
|
|
|
5208
5198
|
)
|
|
5209
5199
|
] });
|
|
5210
5200
|
};
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5201
|
+
const TABLE_MIN_WIDTH = 720;
|
|
5202
|
+
const keepActionKeys = (event) => {
|
|
5203
|
+
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
5204
|
+
};
|
|
5205
|
+
const ActiveImpersonationsCard = () => {
|
|
5206
|
+
const { t } = useSettingsTranslate();
|
|
5207
|
+
const { get, post } = useFetchClient();
|
|
5208
|
+
const { toggleNotification } = useNotification();
|
|
5209
|
+
const { formatDate } = useSessionFormatters();
|
|
5210
|
+
const [widthRef, width] = useElementWidth();
|
|
5211
|
+
const [rows, setRows] = useState(null);
|
|
5212
|
+
const [error, setError] = useState(false);
|
|
5213
|
+
const [refreshing, setRefreshing] = useState(false);
|
|
5214
|
+
const refreshRef = useRef(null);
|
|
5215
|
+
const requestRef = useRef(0);
|
|
5216
|
+
const apply = useCallback(async (request, pending) => {
|
|
5217
|
+
try {
|
|
5218
|
+
const { data } = await pending;
|
|
5219
|
+
if (request !== requestRef.current) return;
|
|
5220
|
+
if (!Array.isArray(data?.data)) throw new Error("Invalid impersonation list");
|
|
5221
|
+
setRows(data.data);
|
|
5222
|
+
setError(false);
|
|
5223
|
+
} catch (err) {
|
|
5224
|
+
if (isCancelledRequest(err) || request !== requestRef.current) return;
|
|
5225
|
+
logSafeAdminError("impersonation.list", err);
|
|
5226
|
+
setError(true);
|
|
5227
|
+
} finally {
|
|
5228
|
+
if (request === requestRef.current) setRefreshing(false);
|
|
5229
|
+
}
|
|
5230
|
+
}, []);
|
|
5231
|
+
const load = useCallback(() => {
|
|
5232
|
+
const request = ++requestRef.current;
|
|
5233
|
+
setRefreshing(true);
|
|
5234
|
+
return apply(request, get(`/${pluginId}/impersonation/active`));
|
|
5235
|
+
}, [apply, get]);
|
|
5236
|
+
useEffect(() => {
|
|
5237
|
+
apply(++requestRef.current, get(`/${pluginId}/impersonation/active`));
|
|
5238
|
+
}, [apply, get]);
|
|
5239
|
+
const end = async (row) => {
|
|
5240
|
+
try {
|
|
5241
|
+
await post(`/${pluginId}/impersonation/${row.id}/end`, {});
|
|
5242
|
+
toggleNotification({
|
|
5243
|
+
type: "success",
|
|
5244
|
+
message: t("impersonation.ended", "Impersonation ended.")
|
|
5245
|
+
});
|
|
5246
|
+
} catch (err) {
|
|
5247
|
+
logSafeAdminError("impersonation.end", err);
|
|
5248
|
+
toggleNotification({
|
|
5249
|
+
type: "danger",
|
|
5250
|
+
message: t("impersonation.error.end", "The impersonation could not be ended.")
|
|
5251
|
+
});
|
|
5252
|
+
throw err;
|
|
5253
|
+
} finally {
|
|
5254
|
+
await load();
|
|
5255
|
+
}
|
|
5256
|
+
};
|
|
5257
|
+
const endAction = (row) => /* @__PURE__ */ jsx(
|
|
5258
|
+
ConfirmAction,
|
|
5259
|
+
{
|
|
5260
|
+
fallbackFocusRef: refreshRef,
|
|
5261
|
+
title: t("impersonation.confirm.title", "End the impersonation of {user}?", {
|
|
5262
|
+
user: row.targetLabel
|
|
5263
|
+
}),
|
|
5264
|
+
body: t(
|
|
5265
|
+
"impersonation.confirm.body",
|
|
5266
|
+
"The short-lived sign-in stops working at once. This is recorded in the security log."
|
|
5267
|
+
),
|
|
5268
|
+
confirmLabel: t("impersonation.end", "End impersonation"),
|
|
5269
|
+
onConfirm: () => end(row),
|
|
5270
|
+
trigger: /* @__PURE__ */ jsx(
|
|
5271
|
+
IconButton,
|
|
5272
|
+
{
|
|
5273
|
+
variant: "ghost",
|
|
5274
|
+
label: t("impersonation.endLabel", "End impersonation of {user}", {
|
|
5275
|
+
user: row.targetLabel
|
|
5276
|
+
}),
|
|
5277
|
+
children: /* @__PURE__ */ jsx(SignOut, {})
|
|
5278
|
+
}
|
|
5279
|
+
)
|
|
5280
|
+
},
|
|
5281
|
+
row.id
|
|
5282
|
+
);
|
|
5283
|
+
const time = (iso) => /* @__PURE__ */ jsx(Typography, { tag: "time", dateTime: iso, variant: "omega", textColor: "neutral800", children: formatDate(iso, { hour: "2-digit", minute: "2-digit" }) });
|
|
5284
|
+
const startedBy = (row) => row.startedByYou ? t("impersonation.list.you", "You") : row.actorLabel || "—";
|
|
5285
|
+
let content;
|
|
5286
|
+
if (rows === null && !error) {
|
|
5287
|
+
content = /* @__PURE__ */ jsx(Flex, { justifyContent: "center", padding: 6, children: /* @__PURE__ */ jsx(Loader, { small: true, children: t("impersonation.list.loading", "Loading impersonations…") }) });
|
|
5288
|
+
} else if (error && rows === null) {
|
|
5289
|
+
content = /* @__PURE__ */ jsx(
|
|
5290
|
+
PersistentAlert,
|
|
5291
|
+
{
|
|
5292
|
+
variant: "danger",
|
|
5293
|
+
closeLabel: t("common.close", "Close"),
|
|
5294
|
+
title: t("impersonation.list.error", "Impersonations could not be loaded."),
|
|
5295
|
+
action: /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: load, children: t("common.tryAgain", "Try again") }),
|
|
5296
|
+
children: t(
|
|
5297
|
+
"impersonation.list.errorBody",
|
|
5298
|
+
"Running impersonations still end on time; only this list is missing."
|
|
5299
|
+
)
|
|
5300
|
+
}
|
|
5301
|
+
);
|
|
5302
|
+
} else if (rows.length === 0) {
|
|
5303
|
+
content = /* @__PURE__ */ jsx(
|
|
5304
|
+
EmptyStateLayout,
|
|
5305
|
+
{
|
|
5306
|
+
icon: /* @__PURE__ */ jsx(EmptyPermissions, { width: "16rem", height: "8rem" }),
|
|
5307
|
+
content: t(
|
|
5308
|
+
"impersonation.list.empty",
|
|
5309
|
+
"No impersonation is running. Start one from a user’s entry in the Content Manager."
|
|
5310
|
+
)
|
|
5311
|
+
}
|
|
5312
|
+
);
|
|
5313
|
+
} else if (width === 0 || width >= TABLE_MIN_WIDTH) {
|
|
5314
|
+
content = /* @__PURE__ */ jsx(Box, { hasRadius: true, borderColor: "neutral150", "data-impersonations-table": "", children: /* @__PURE__ */ jsxs(Table, { colCount: 5, rowCount: rows.length + 1, "aria-busy": refreshing, children: [
|
|
5315
|
+
/* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
|
|
5316
|
+
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.user", "User") }) }),
|
|
5317
|
+
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.startedBy", "Started by") }) }),
|
|
5318
|
+
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.reason", "Reason") }) }),
|
|
5319
|
+
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.ends", "Ends") }) }),
|
|
5320
|
+
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("impersonation.list.col.actions", "Actions") }) })
|
|
5321
|
+
] }) }),
|
|
5322
|
+
/* @__PURE__ */ jsx(Tbody, { children: rows.map((row) => /* @__PURE__ */ jsxs(Tr, { "data-impersonation-row": "", children: [
|
|
5323
|
+
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: row.targetLabel }) }),
|
|
5324
|
+
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: startedBy(row) }) }),
|
|
5325
|
+
/* @__PURE__ */ jsx(Td, { style: { maxWidth: 0, width: "40%" }, children: /* @__PURE__ */ jsx(
|
|
5326
|
+
Typography,
|
|
5327
|
+
{
|
|
5328
|
+
variant: "omega",
|
|
5329
|
+
textColor: "neutral800",
|
|
5330
|
+
tag: "p",
|
|
5331
|
+
style: { overflowWrap: "anywhere" },
|
|
5332
|
+
children: row.reason
|
|
5333
|
+
}
|
|
5334
|
+
) }),
|
|
5335
|
+
/* @__PURE__ */ jsx(Td, { children: time(row.expiresAt) }),
|
|
5336
|
+
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) }) })
|
|
5337
|
+
] }, row.id)) })
|
|
5338
|
+
] }) });
|
|
5339
|
+
} else {
|
|
5340
|
+
content = /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 2, tag: "ul", "data-impersonations-list": "", children: rows.map((row) => /* @__PURE__ */ jsx(Box, { tag: "li", padding: 4, hasRadius: true, borderColor: "neutral150", children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", gap: 3, children: [
|
|
5341
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", gap: 1, minWidth: 0, children: [
|
|
5342
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: row.targetLabel }),
|
|
5343
|
+
/* @__PURE__ */ jsx(
|
|
5344
|
+
Typography,
|
|
5345
|
+
{
|
|
5346
|
+
variant: "pi",
|
|
5347
|
+
textColor: "neutral800",
|
|
5348
|
+
tag: "p",
|
|
5349
|
+
style: { overflowWrap: "anywhere" },
|
|
5350
|
+
children: row.reason
|
|
5351
|
+
}
|
|
5352
|
+
),
|
|
5353
|
+
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: t("impersonation.list.summary", "{admin}, until {time}", {
|
|
5354
|
+
admin: startedBy(row),
|
|
5355
|
+
time: formatDate(row.expiresAt, { hour: "2-digit", minute: "2-digit" })
|
|
5356
|
+
}) })
|
|
5357
|
+
] }),
|
|
5358
|
+
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) })
|
|
5359
|
+
] }) }, row.id)) });
|
|
5217
5360
|
}
|
|
5218
|
-
|
|
5219
|
-
|
|
5361
|
+
return /* @__PURE__ */ jsx(
|
|
5362
|
+
SectionCard,
|
|
5363
|
+
{
|
|
5364
|
+
id: "active-impersonations",
|
|
5365
|
+
title: t("impersonation.list.title", "Active impersonations"),
|
|
5366
|
+
subtitle: t(
|
|
5367
|
+
"impersonation.list.intro",
|
|
5368
|
+
"Each one ends by itself at the time shown. End stops it at once."
|
|
5369
|
+
),
|
|
5370
|
+
action: /* @__PURE__ */ jsx(
|
|
5371
|
+
Button,
|
|
5372
|
+
{
|
|
5373
|
+
ref: refreshRef,
|
|
5374
|
+
variant: "tertiary",
|
|
5375
|
+
startIcon: /* @__PURE__ */ jsx(ArrowClockwise, {}),
|
|
5376
|
+
onClick: load,
|
|
5377
|
+
loading: refreshing && rows !== null,
|
|
5378
|
+
children: t("impersonation.list.refresh", "Refresh")
|
|
5379
|
+
}
|
|
5380
|
+
),
|
|
5381
|
+
children: /* @__PURE__ */ jsxs("div", { ref: widthRef, "aria-live": "polite", children: [
|
|
5382
|
+
error && rows !== null ? /* @__PURE__ */ jsx(Box, { paddingBottom: 3, children: /* @__PURE__ */ jsx(
|
|
5383
|
+
PersistentAlert,
|
|
5384
|
+
{
|
|
5385
|
+
variant: "warning",
|
|
5386
|
+
closeLabel: t("common.close", "Close"),
|
|
5387
|
+
title: t("impersonation.list.refreshErrorTitle", "Not refreshed"),
|
|
5388
|
+
children: t(
|
|
5389
|
+
"impersonation.list.refreshError",
|
|
5390
|
+
"The list could not be refreshed. It shows the last known impersonations."
|
|
5391
|
+
)
|
|
5392
|
+
}
|
|
5393
|
+
) }) : null,
|
|
5394
|
+
content
|
|
5395
|
+
] })
|
|
5396
|
+
}
|
|
5397
|
+
);
|
|
5398
|
+
};
|
|
5399
|
+
const ImpersonationTab = ({ form }) => {
|
|
5400
|
+
const { t } = useSettingsTranslate();
|
|
5401
|
+
const { settings, handleChange } = form;
|
|
5402
|
+
const locked = form.canChangeProtected === false;
|
|
5403
|
+
const {
|
|
5404
|
+
isLoading,
|
|
5405
|
+
allowedActions: { canUsers }
|
|
5406
|
+
} = useRBAC(pluginPermissions.impersonateUsers);
|
|
5407
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
5408
|
+
/* @__PURE__ */ jsx(IntroText, { children: t(
|
|
5409
|
+
"settings.impersonation.intro",
|
|
5410
|
+
"Support staff can act as an app user for up to an hour to reproduce a problem, with a reason that is recorded. Who may do this is set per role under Settings > Roles > Session Manager."
|
|
5411
|
+
) }),
|
|
5412
|
+
locked ? /* @__PURE__ */ jsx(ProtectedNotice, {}) : null,
|
|
5413
|
+
/* @__PURE__ */ jsx(SectionCard, { title: t("settings.impersonation.title", "Impersonation of app users"), children: /* @__PURE__ */ jsx(
|
|
5414
|
+
SettingsToggleRow,
|
|
5415
|
+
{
|
|
5416
|
+
id: "impersonation-enabled",
|
|
5417
|
+
title: t("settings.impersonation.enable.label", "Allow impersonation"),
|
|
5418
|
+
description: t(
|
|
5419
|
+
"settings.impersonation.enable.hint",
|
|
5420
|
+
"Off by default. Turning it off ends every running impersonation at once."
|
|
5421
|
+
),
|
|
5422
|
+
checked: settings.impersonationEnabled === true,
|
|
5423
|
+
disabled: locked,
|
|
5424
|
+
onChange: (checked) => handleChange("impersonationEnabled", checked),
|
|
5425
|
+
children: /* @__PURE__ */ jsx(ReadableText, { variant: "pi", textColor: "neutral700", tag: "p", "data-privacy-note": "", children: t(
|
|
5426
|
+
"settings.impersonation.notice",
|
|
5427
|
+
"Acting as a person processes their personal data. Tell your users in the privacy notice, and in Germany check whether the works council must agree, because the log shows what each admin did."
|
|
5428
|
+
) })
|
|
5429
|
+
}
|
|
5430
|
+
) }),
|
|
5431
|
+
!isLoading && canUsers ? /* @__PURE__ */ jsx(ActiveImpersonationsCard, {}) : null
|
|
5432
|
+
] });
|
|
5433
|
+
};
|
|
5220
5434
|
const INITIAL_SETTINGS = { ...SETTINGS_DEFAULTS, emailTemplates: fillMissingTemplates({}) };
|
|
5221
5435
|
const BUILD_DATE_OPTIONS = Object.freeze({ dateStyle: "medium" });
|
|
5222
5436
|
const getServerMessage = (error) => {
|
|
@@ -5588,6 +5802,7 @@ const TAB_COMPONENTS = {
|
|
|
5588
5802
|
"location-data": LocationDataTab,
|
|
5589
5803
|
alerts: AlertsTab,
|
|
5590
5804
|
"data-retention": DataRetentionTab,
|
|
5805
|
+
impersonation: ImpersonationTab,
|
|
5591
5806
|
"admin-activity": AdminActivityTab
|
|
5592
5807
|
};
|
|
5593
5808
|
const DraftSync = ({ values }) => {
|
|
@@ -1002,7 +1002,69 @@ const de = {
|
|
|
1002
1002
|
"adminPanel.activity.event.userExport": "Personenbezogene Daten exportiert",
|
|
1003
1003
|
"adminPanel.activity.event.impersonation": "Als anderer Benutzer angemeldet",
|
|
1004
1004
|
"adminPanel.activity.event.webhook": "Webhook-Zustellung",
|
|
1005
|
-
"adminPanel.activity.settingsGroup": "{tab}: {fields}"
|
|
1005
|
+
"adminPanel.activity.settingsGroup": "{tab}: {fields}",
|
|
1006
|
+
"impersonation.error.disabled": "Die Identitätsübernahme ist in den Einstellungen ausgeschaltet.",
|
|
1007
|
+
"impersonation.error.alreadyActive": "Für diesen Benutzer läuft bereits eine Identitätsübernahme. Beenden Sie sie zuerst.",
|
|
1008
|
+
"impersonation.error.blocked": "Gesperrte Konten können nicht übernommen werden.",
|
|
1009
|
+
"impersonation.error.apiToken": "API-Token können keine Identität übernehmen.",
|
|
1010
|
+
"impersonation.result.copied": "In die Zwischenablage kopiert.",
|
|
1011
|
+
"impersonation.result.copyFailed": "Kopieren fehlgeschlagen. Markieren und kopieren Sie den Text selbst.",
|
|
1012
|
+
"impersonation.result.copy": "{name} kopieren",
|
|
1013
|
+
"impersonation.error.rateLimited": "Es wurden zu viele Identitätsübernahmen gestartet. Versuchen Sie es in einigen Minuten erneut.",
|
|
1014
|
+
"impersonation.error.start": "Die Identitätsübernahme konnte nicht gestartet werden.",
|
|
1015
|
+
"impersonation.ended": "Identitätsübernahme beendet.",
|
|
1016
|
+
"impersonation.error.end": "Die Identitätsübernahme konnte nicht beendet werden.",
|
|
1017
|
+
"impersonation.error.frontend": "Das Frontend konnte nicht geöffnet werden.",
|
|
1018
|
+
"impersonation.result.title": "Sie handeln als {user}",
|
|
1019
|
+
"impersonation.modal.title": "Als {user} anmelden",
|
|
1020
|
+
"impersonation.modal.intro": "Sie erhalten eine kurzlebige Anmeldung als dieser Benutzer, um ein Problem nachzustellen. Passwort, E-Mail-Adresse, Konto und Sitzungen lassen sich damit nicht ändern. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1021
|
+
"impersonation.reason.hint": "Wird im Sicherheitsprotokoll gespeichert und, falls Sie den Benutzer per E-Mail informieren, ihm angezeigt.",
|
|
1022
|
+
"impersonation.reason.label": "Grund",
|
|
1023
|
+
"impersonation.reason.placeholder": "Zum Beispiel: Ticket 4711",
|
|
1024
|
+
"impersonation.duration.label": "Dauer",
|
|
1025
|
+
"impersonation.duration.minutes": "{count, plural, one {# Minute} other {# Minuten}}",
|
|
1026
|
+
"impersonation.notify.label": "Den Benutzer per E-Mail informieren, dass sein Konto geöffnet wurde",
|
|
1027
|
+
"impersonation.notify.hint": "Wird über das E-Mail-Plugin von Strapi gesendet, mit Grund und Dauer.",
|
|
1028
|
+
"impersonation.result.frontendBody": "Öffnen Sie {origin} innerhalb einer Minute. Der Anmeldelink funktioniert einmal und wird gesendet, ohne in der Adresszeile zu erscheinen.",
|
|
1029
|
+
"impersonation.result.openFrontend": "Frontend öffnen",
|
|
1030
|
+
"impersonation.result.tokenBody": "Wird nur einmal angezeigt. Wer dieses Token hat, handelt bis zum Ende als {user}. Speichern oder teilen Sie es nicht.",
|
|
1031
|
+
"impersonation.result.accessToken": "Zugriffstoken",
|
|
1032
|
+
"impersonation.result.refreshToken": "Aktualisierungstoken",
|
|
1033
|
+
"impersonation.result.endsIn": "Endet in {time}.",
|
|
1034
|
+
"impersonation.end": "Identitätsübernahme beenden",
|
|
1035
|
+
"impersonation.result.done": "Fertig",
|
|
1036
|
+
"impersonation.start": "Identitätsübernahme starten",
|
|
1037
|
+
"impersonation.confirm.title": "Identitätsübernahme von {user} beenden?",
|
|
1038
|
+
"impersonation.confirm.body": "Die kurzlebige Anmeldung funktioniert sofort nicht mehr. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1039
|
+
"impersonation.endLabel": "Identitätsübernahme von {user} beenden",
|
|
1040
|
+
"impersonation.list.you": "Sie",
|
|
1041
|
+
"impersonation.list.loading": "Identitätsübernahmen werden geladen…",
|
|
1042
|
+
"impersonation.list.error": "Die Identitätsübernahmen konnten nicht geladen werden.",
|
|
1043
|
+
"impersonation.list.errorBody": "Laufende Identitätsübernahmen enden trotzdem pünktlich; nur diese Liste fehlt.",
|
|
1044
|
+
"impersonation.list.empty": "Es läuft keine Identitätsübernahme. Starten Sie eine im Eintrag eines Benutzers im Content Manager.",
|
|
1045
|
+
"impersonation.list.col.user": "Benutzer",
|
|
1046
|
+
"impersonation.list.col.startedBy": "Gestartet von",
|
|
1047
|
+
"impersonation.list.col.reason": "Grund",
|
|
1048
|
+
"impersonation.list.col.ends": "Endet",
|
|
1049
|
+
"impersonation.list.col.actions": "Aktionen",
|
|
1050
|
+
"impersonation.list.summary": "{admin}, bis {time}",
|
|
1051
|
+
"impersonation.list.title": "Laufende Identitätsübernahmen",
|
|
1052
|
+
"impersonation.list.intro": "Jede endet von selbst zur angezeigten Zeit. Mit Beenden stoppen Sie sie sofort.",
|
|
1053
|
+
"impersonation.list.refresh": "Aktualisieren",
|
|
1054
|
+
"impersonation.list.refreshErrorTitle": "Nicht aktualisiert",
|
|
1055
|
+
"impersonation.list.refreshError": "Die Liste konnte nicht aktualisiert werden. Sie zeigt die zuletzt bekannten Identitätsübernahmen.",
|
|
1056
|
+
"impersonation.panel.title": "Identitätsübernahme",
|
|
1057
|
+
"impersonation.panel.running": "Läuft bis {time}.",
|
|
1058
|
+
"impersonation.panel.start": "Als Benutzer anmelden…",
|
|
1059
|
+
"settings.impersonation.intro": "Support-Mitarbeitende können bis zu einer Stunde als App-Benutzer handeln, um ein Problem nachzustellen; der Grund wird festgehalten. Wer das darf, legen Sie pro Rolle unter Einstellungen > Rollen > Session Manager fest.",
|
|
1060
|
+
"settings.impersonation.title": "Identitätsübernahme von App-Benutzern",
|
|
1061
|
+
"settings.impersonation.enable.label": "Identitätsübernahme erlauben",
|
|
1062
|
+
"settings.impersonation.enable.hint": "Standardmäßig aus. Beim Ausschalten enden alle laufenden Identitätsübernahmen sofort.",
|
|
1063
|
+
"settings.impersonation.notice": "Wer als eine Person handelt, verarbeitet deren personenbezogene Daten. Informieren Sie Ihre Benutzer in der Datenschutzerklärung, und prüfen Sie in Deutschland, ob der Betriebsrat zustimmen muss, weil das Protokoll zeigt, was jeder Admin getan hat.",
|
|
1064
|
+
"settings.config.tab.impersonation": "Identitätsübernahme",
|
|
1065
|
+
"impersonation.reason.tooShort": "Geben Sie einen Grund mit mindestens {min} Zeichen ein.",
|
|
1066
|
+
"impersonation.reason.tooLong": "Verwenden Sie höchstens {max} Zeichen.",
|
|
1067
|
+
"impersonation.error.csp": "Die Sicherheitseinstellungen von Strapi verhindern, dass die Anmeldung an {origin} gesendet wird. Fügen Sie diesen Ursprung zu form-action der Content-Security-Policy hinzu (siehe Dokumentation) und starten Sie erneut."
|
|
1006
1068
|
};
|
|
1007
1069
|
export {
|
|
1008
1070
|
de as default
|
|
@@ -1004,6 +1004,68 @@ const de = {
|
|
|
1004
1004
|
"adminPanel.activity.event.userExport": "Personenbezogene Daten exportiert",
|
|
1005
1005
|
"adminPanel.activity.event.impersonation": "Als anderer Benutzer angemeldet",
|
|
1006
1006
|
"adminPanel.activity.event.webhook": "Webhook-Zustellung",
|
|
1007
|
-
"adminPanel.activity.settingsGroup": "{tab}: {fields}"
|
|
1007
|
+
"adminPanel.activity.settingsGroup": "{tab}: {fields}",
|
|
1008
|
+
"impersonation.error.disabled": "Die Identitätsübernahme ist in den Einstellungen ausgeschaltet.",
|
|
1009
|
+
"impersonation.error.alreadyActive": "Für diesen Benutzer läuft bereits eine Identitätsübernahme. Beenden Sie sie zuerst.",
|
|
1010
|
+
"impersonation.error.blocked": "Gesperrte Konten können nicht übernommen werden.",
|
|
1011
|
+
"impersonation.error.apiToken": "API-Token können keine Identität übernehmen.",
|
|
1012
|
+
"impersonation.result.copied": "In die Zwischenablage kopiert.",
|
|
1013
|
+
"impersonation.result.copyFailed": "Kopieren fehlgeschlagen. Markieren und kopieren Sie den Text selbst.",
|
|
1014
|
+
"impersonation.result.copy": "{name} kopieren",
|
|
1015
|
+
"impersonation.error.rateLimited": "Es wurden zu viele Identitätsübernahmen gestartet. Versuchen Sie es in einigen Minuten erneut.",
|
|
1016
|
+
"impersonation.error.start": "Die Identitätsübernahme konnte nicht gestartet werden.",
|
|
1017
|
+
"impersonation.ended": "Identitätsübernahme beendet.",
|
|
1018
|
+
"impersonation.error.end": "Die Identitätsübernahme konnte nicht beendet werden.",
|
|
1019
|
+
"impersonation.error.frontend": "Das Frontend konnte nicht geöffnet werden.",
|
|
1020
|
+
"impersonation.result.title": "Sie handeln als {user}",
|
|
1021
|
+
"impersonation.modal.title": "Als {user} anmelden",
|
|
1022
|
+
"impersonation.modal.intro": "Sie erhalten eine kurzlebige Anmeldung als dieser Benutzer, um ein Problem nachzustellen. Passwort, E-Mail-Adresse, Konto und Sitzungen lassen sich damit nicht ändern. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1023
|
+
"impersonation.reason.hint": "Wird im Sicherheitsprotokoll gespeichert und, falls Sie den Benutzer per E-Mail informieren, ihm angezeigt.",
|
|
1024
|
+
"impersonation.reason.label": "Grund",
|
|
1025
|
+
"impersonation.reason.placeholder": "Zum Beispiel: Ticket 4711",
|
|
1026
|
+
"impersonation.duration.label": "Dauer",
|
|
1027
|
+
"impersonation.duration.minutes": "{count, plural, one {# Minute} other {# Minuten}}",
|
|
1028
|
+
"impersonation.notify.label": "Den Benutzer per E-Mail informieren, dass sein Konto geöffnet wurde",
|
|
1029
|
+
"impersonation.notify.hint": "Wird über das E-Mail-Plugin von Strapi gesendet, mit Grund und Dauer.",
|
|
1030
|
+
"impersonation.result.frontendBody": "Öffnen Sie {origin} innerhalb einer Minute. Der Anmeldelink funktioniert einmal und wird gesendet, ohne in der Adresszeile zu erscheinen.",
|
|
1031
|
+
"impersonation.result.openFrontend": "Frontend öffnen",
|
|
1032
|
+
"impersonation.result.tokenBody": "Wird nur einmal angezeigt. Wer dieses Token hat, handelt bis zum Ende als {user}. Speichern oder teilen Sie es nicht.",
|
|
1033
|
+
"impersonation.result.accessToken": "Zugriffstoken",
|
|
1034
|
+
"impersonation.result.refreshToken": "Aktualisierungstoken",
|
|
1035
|
+
"impersonation.result.endsIn": "Endet in {time}.",
|
|
1036
|
+
"impersonation.end": "Identitätsübernahme beenden",
|
|
1037
|
+
"impersonation.result.done": "Fertig",
|
|
1038
|
+
"impersonation.start": "Identitätsübernahme starten",
|
|
1039
|
+
"impersonation.confirm.title": "Identitätsübernahme von {user} beenden?",
|
|
1040
|
+
"impersonation.confirm.body": "Die kurzlebige Anmeldung funktioniert sofort nicht mehr. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1041
|
+
"impersonation.endLabel": "Identitätsübernahme von {user} beenden",
|
|
1042
|
+
"impersonation.list.you": "Sie",
|
|
1043
|
+
"impersonation.list.loading": "Identitätsübernahmen werden geladen…",
|
|
1044
|
+
"impersonation.list.error": "Die Identitätsübernahmen konnten nicht geladen werden.",
|
|
1045
|
+
"impersonation.list.errorBody": "Laufende Identitätsübernahmen enden trotzdem pünktlich; nur diese Liste fehlt.",
|
|
1046
|
+
"impersonation.list.empty": "Es läuft keine Identitätsübernahme. Starten Sie eine im Eintrag eines Benutzers im Content Manager.",
|
|
1047
|
+
"impersonation.list.col.user": "Benutzer",
|
|
1048
|
+
"impersonation.list.col.startedBy": "Gestartet von",
|
|
1049
|
+
"impersonation.list.col.reason": "Grund",
|
|
1050
|
+
"impersonation.list.col.ends": "Endet",
|
|
1051
|
+
"impersonation.list.col.actions": "Aktionen",
|
|
1052
|
+
"impersonation.list.summary": "{admin}, bis {time}",
|
|
1053
|
+
"impersonation.list.title": "Laufende Identitätsübernahmen",
|
|
1054
|
+
"impersonation.list.intro": "Jede endet von selbst zur angezeigten Zeit. Mit Beenden stoppen Sie sie sofort.",
|
|
1055
|
+
"impersonation.list.refresh": "Aktualisieren",
|
|
1056
|
+
"impersonation.list.refreshErrorTitle": "Nicht aktualisiert",
|
|
1057
|
+
"impersonation.list.refreshError": "Die Liste konnte nicht aktualisiert werden. Sie zeigt die zuletzt bekannten Identitätsübernahmen.",
|
|
1058
|
+
"impersonation.panel.title": "Identitätsübernahme",
|
|
1059
|
+
"impersonation.panel.running": "Läuft bis {time}.",
|
|
1060
|
+
"impersonation.panel.start": "Als Benutzer anmelden…",
|
|
1061
|
+
"settings.impersonation.intro": "Support-Mitarbeitende können bis zu einer Stunde als App-Benutzer handeln, um ein Problem nachzustellen; der Grund wird festgehalten. Wer das darf, legen Sie pro Rolle unter Einstellungen > Rollen > Session Manager fest.",
|
|
1062
|
+
"settings.impersonation.title": "Identitätsübernahme von App-Benutzern",
|
|
1063
|
+
"settings.impersonation.enable.label": "Identitätsübernahme erlauben",
|
|
1064
|
+
"settings.impersonation.enable.hint": "Standardmäßig aus. Beim Ausschalten enden alle laufenden Identitätsübernahmen sofort.",
|
|
1065
|
+
"settings.impersonation.notice": "Wer als eine Person handelt, verarbeitet deren personenbezogene Daten. Informieren Sie Ihre Benutzer in der Datenschutzerklärung, und prüfen Sie in Deutschland, ob der Betriebsrat zustimmen muss, weil das Protokoll zeigt, was jeder Admin getan hat.",
|
|
1066
|
+
"settings.config.tab.impersonation": "Identitätsübernahme",
|
|
1067
|
+
"impersonation.reason.tooShort": "Geben Sie einen Grund mit mindestens {min} Zeichen ein.",
|
|
1068
|
+
"impersonation.reason.tooLong": "Verwenden Sie höchstens {max} Zeichen.",
|
|
1069
|
+
"impersonation.error.csp": "Die Sicherheitseinstellungen von Strapi verhindern, dass die Anmeldung an {origin} gesendet wird. Fügen Sie diesen Ursprung zu form-action der Content-Security-Policy hinzu (siehe Dokumentation) und starten Sie erneut."
|
|
1008
1070
|
};
|
|
1009
1071
|
exports.default = de;
|
|
@@ -1004,6 +1004,68 @@ const en = {
|
|
|
1004
1004
|
"adminPanel.activity.event.userExport": "Personal data exported",
|
|
1005
1005
|
"adminPanel.activity.event.impersonation": "Impersonation",
|
|
1006
1006
|
"adminPanel.activity.event.webhook": "Webhook delivery",
|
|
1007
|
-
"adminPanel.activity.settingsGroup": "{tab}: {fields}"
|
|
1007
|
+
"adminPanel.activity.settingsGroup": "{tab}: {fields}",
|
|
1008
|
+
"impersonation.error.disabled": "Impersonation is turned off in the settings.",
|
|
1009
|
+
"impersonation.error.alreadyActive": "An impersonation of this user is already running. End it first.",
|
|
1010
|
+
"impersonation.error.blocked": "Blocked accounts cannot be impersonated.",
|
|
1011
|
+
"impersonation.error.apiToken": "API tokens cannot impersonate.",
|
|
1012
|
+
"impersonation.result.copied": "Copied to the clipboard.",
|
|
1013
|
+
"impersonation.result.copyFailed": "Copying failed. Select the text and copy it yourself.",
|
|
1014
|
+
"impersonation.result.copy": "Copy {name}",
|
|
1015
|
+
"impersonation.error.rateLimited": "Too many impersonations were started. Try again in a few minutes.",
|
|
1016
|
+
"impersonation.error.start": "The impersonation could not be started.",
|
|
1017
|
+
"impersonation.ended": "Impersonation ended.",
|
|
1018
|
+
"impersonation.error.end": "The impersonation could not be ended.",
|
|
1019
|
+
"impersonation.error.frontend": "The frontend could not be opened.",
|
|
1020
|
+
"impersonation.result.title": "Impersonating {user}",
|
|
1021
|
+
"impersonation.modal.title": "Impersonate {user}",
|
|
1022
|
+
"impersonation.modal.intro": "You get a short-lived sign-in as this user to reproduce a problem. Password, email address, account and sessions cannot be changed with it. It is recorded in the security log.",
|
|
1023
|
+
"impersonation.reason.hint": "Stored in the security log and, if you email the user, shown to them.",
|
|
1024
|
+
"impersonation.reason.label": "Reason",
|
|
1025
|
+
"impersonation.reason.placeholder": "For example: ticket 4711",
|
|
1026
|
+
"impersonation.duration.label": "Duration",
|
|
1027
|
+
"impersonation.duration.minutes": "{count, plural, one {# minute} other {# minutes}}",
|
|
1028
|
+
"impersonation.notify.label": "Email the user that their account was opened",
|
|
1029
|
+
"impersonation.notify.hint": "Sent through Strapi’s email plugin, with the reason and the duration.",
|
|
1030
|
+
"impersonation.result.frontendBody": "Open {origin} within one minute. The sign-in link works once and is sent without appearing in the address bar.",
|
|
1031
|
+
"impersonation.result.openFrontend": "Open frontend",
|
|
1032
|
+
"impersonation.result.tokenBody": "Shown only once. Anyone who has this token acts as {user} until it ends. Do not store or share it.",
|
|
1033
|
+
"impersonation.result.accessToken": "Access token",
|
|
1034
|
+
"impersonation.result.refreshToken": "Refresh token",
|
|
1035
|
+
"impersonation.result.endsIn": "Ends in {time}.",
|
|
1036
|
+
"impersonation.end": "End impersonation",
|
|
1037
|
+
"impersonation.result.done": "Done",
|
|
1038
|
+
"impersonation.start": "Start impersonation",
|
|
1039
|
+
"impersonation.confirm.title": "End the impersonation of {user}?",
|
|
1040
|
+
"impersonation.confirm.body": "The short-lived sign-in stops working at once. This is recorded in the security log.",
|
|
1041
|
+
"impersonation.endLabel": "End impersonation of {user}",
|
|
1042
|
+
"impersonation.list.you": "You",
|
|
1043
|
+
"impersonation.list.loading": "Loading impersonations…",
|
|
1044
|
+
"impersonation.list.error": "Impersonations could not be loaded.",
|
|
1045
|
+
"impersonation.list.errorBody": "Running impersonations still end on time; only this list is missing.",
|
|
1046
|
+
"impersonation.list.empty": "No impersonation is running. Start one from a user’s entry in the Content Manager.",
|
|
1047
|
+
"impersonation.list.col.user": "User",
|
|
1048
|
+
"impersonation.list.col.startedBy": "Started by",
|
|
1049
|
+
"impersonation.list.col.reason": "Reason",
|
|
1050
|
+
"impersonation.list.col.ends": "Ends",
|
|
1051
|
+
"impersonation.list.col.actions": "Actions",
|
|
1052
|
+
"impersonation.list.summary": "{admin}, until {time}",
|
|
1053
|
+
"impersonation.list.title": "Active impersonations",
|
|
1054
|
+
"impersonation.list.intro": "Each one ends by itself at the time shown. End stops it at once.",
|
|
1055
|
+
"impersonation.list.refresh": "Refresh",
|
|
1056
|
+
"impersonation.list.refreshErrorTitle": "Not refreshed",
|
|
1057
|
+
"impersonation.list.refreshError": "The list could not be refreshed. It shows the last known impersonations.",
|
|
1058
|
+
"impersonation.panel.title": "Impersonation",
|
|
1059
|
+
"impersonation.panel.running": "Running until {time}.",
|
|
1060
|
+
"impersonation.panel.start": "Impersonate…",
|
|
1061
|
+
"settings.impersonation.intro": "Support staff can act as an app user for up to an hour to reproduce a problem, with a reason that is recorded. Who may do this is set per role under Settings > Roles > Session Manager.",
|
|
1062
|
+
"settings.impersonation.title": "Impersonation of app users",
|
|
1063
|
+
"settings.impersonation.enable.label": "Allow impersonation",
|
|
1064
|
+
"settings.impersonation.enable.hint": "Off by default. Turning it off ends every running impersonation at once.",
|
|
1065
|
+
"settings.impersonation.notice": "Acting as a person processes their personal data. Tell your users in the privacy notice, and in Germany check whether the works council must agree, because the log shows what each admin did.",
|
|
1066
|
+
"settings.config.tab.impersonation": "Impersonation",
|
|
1067
|
+
"impersonation.reason.tooShort": "Enter a reason of at least {min} characters.",
|
|
1068
|
+
"impersonation.reason.tooLong": "Use at most {max} characters.",
|
|
1069
|
+
"impersonation.error.csp": "Your Strapi security settings block sending the sign-in to {origin}. Add this origin to form-action of the Content-Security-Policy (see the README), then start again."
|
|
1008
1070
|
};
|
|
1009
1071
|
exports.default = en;
|