@7365admin1/layer-common 4.0.3-staging.228 → 4.0.3-staging.229
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.
|
@@ -105,7 +105,7 @@ const props = defineProps({
|
|
|
105
105
|
},
|
|
106
106
|
canViewBulletinBoardDetails: {
|
|
107
107
|
type: Boolean,
|
|
108
|
-
default:
|
|
108
|
+
default: undefined
|
|
109
109
|
}, canDeleteBulletinBoard: {
|
|
110
110
|
type: Boolean,
|
|
111
111
|
default: false
|
|
@@ -121,6 +121,16 @@ const props = defineProps({
|
|
|
121
121
|
const { authenticate } = useLocalAuth();
|
|
122
122
|
authenticate();
|
|
123
123
|
|
|
124
|
+
// Six of the seven apps rendering this component never bind this gate, so it
|
|
125
|
+
// used to default open (any role could see/edit a bulletin board's details).
|
|
126
|
+
// `useBulletinBoardPermission` already resolves this correctly and fails
|
|
127
|
+
// closed -- read it ourselves instead of trusting a caller-supplied default.
|
|
128
|
+
// A caller that DOES pass the prop explicitly is unaffected: their value wins.
|
|
129
|
+
const { canViewBulletinBoardDetails: derivedCanViewBulletinBoardDetails } = useBulletinBoardPermission();
|
|
130
|
+
const canViewBulletinBoardDetails = computed(
|
|
131
|
+
() => props.canViewBulletinBoardDetails ?? derivedCanViewBulletinBoardDetails.value
|
|
132
|
+
);
|
|
133
|
+
|
|
124
134
|
const route = useRoute();
|
|
125
135
|
const orgId = route.params.org as string;
|
|
126
136
|
const siteId = props.siteId;
|
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.0.3-staging.
|
|
5
|
+
"version": "4.0.3-staging.229",
|
|
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.",
|