@7365admin1/layer-common 4.97.1-staging.711 → 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;
|