@7365admin1/layer-common 4.97.1-staging.710 → 4.97.1-staging.712
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.712",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
|
@@ -283,13 +283,15 @@ export default defineNuxtPlugin(() => {
|
|
|
283
283
|
// that is not a list all mean nothing is denied -- never "hide everything".
|
|
284
284
|
// It never touches the role or its status.
|
|
285
285
|
async function resolveDenied(userId: string, site: string) {
|
|
286
|
-
// Seven365 staff
|
|
287
|
-
|
|
286
|
+
// Seven365 staff inside a client see that client's menus (owner 2026-11-17:
|
|
287
|
+
// modules Super Admin left unticked still showed in staff view). The server
|
|
288
|
+
// answers staff with the client's list; its own checks keep staff exempt.
|
|
289
|
+
if (!staffViewActive && !hasMemberDocument) {
|
|
288
290
|
deniedFor = deniedWanted = null;
|
|
289
291
|
userAppModulesDenied.value = [];
|
|
290
292
|
return;
|
|
291
293
|
}
|
|
292
|
-
const org = id.value ?? "";
|
|
294
|
+
const org = (staffViewActive ? lastStaffOrg : id.value) ?? "";
|
|
293
295
|
const key = `${userId}|${org}|${site}`;
|
|
294
296
|
if (deniedFor === key) return;
|
|
295
297
|
deniedWanted = key;
|
|
@@ -107,6 +107,8 @@ export const VENDOR_ORDER_MODULE = "marketplace-vendor-order";
|
|
|
107
107
|
*/
|
|
108
108
|
export const SP_INVITATION_SCREEN = "/service-provider-invitation";
|
|
109
109
|
export const INVITATIONS_ROUTE = "org-organization-client-invitations";
|
|
110
|
+
/** The organisation app's Sites page (its Access requests panel reads ?requests=incoming|outgoing). */
|
|
111
|
+
export const SITES_ROUTE = "org-organization-sites";
|
|
110
112
|
|
|
111
113
|
/**
|
|
112
114
|
* What a row is about. `params.kind` when the sender set it; for older rows the
|
|
@@ -233,6 +235,8 @@ SITE_PAGES.myVisitors = SITE_PAGES.visitors;
|
|
|
233
235
|
export const WEB_TARGET_KINDS = [
|
|
234
236
|
...Object.keys(SITE_PAGES),
|
|
235
237
|
"serviceProviderInvite",
|
|
238
|
+
"siteJoinRequest",
|
|
239
|
+
"siteJoinAnswer",
|
|
236
240
|
VENDOR_ORDER_MODULE,
|
|
237
241
|
"robot",
|
|
238
242
|
"client",
|
|
@@ -313,6 +317,21 @@ export function notificationTarget(
|
|
|
313
317
|
};
|
|
314
318
|
}
|
|
315
319
|
|
|
320
|
+
// A company asked for access to one of our sites (approve it) or we hear the
|
|
321
|
+
// answer to ours (owner 2026-11-17: the click went nowhere). Both live on the
|
|
322
|
+
// organisation app's Sites page, Access requests panel, on the right tab.
|
|
323
|
+
if (kind === "siteJoinRequest" || kind === "siteJoinAnswer") {
|
|
324
|
+
const org = String(item?.params?.org ?? "").trim() || organization;
|
|
325
|
+
if (!org) return null;
|
|
326
|
+
return {
|
|
327
|
+
name: SITES_ROUTE,
|
|
328
|
+
params: { organization: org },
|
|
329
|
+
query: { requests: kind === "siteJoinRequest" ? "incoming" : "outgoing" },
|
|
330
|
+
app: "org",
|
|
331
|
+
path: `/org/${encodeURIComponent(org)}/sites`,
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
316
335
|
if (!item) return null;
|
|
317
336
|
const staff = staffTarget(kind, item);
|
|
318
337
|
if (staff) return staff;
|