@panoramax/web-viewer 5.2.0-develop-a4bfc0fc → 5.2.0-develop-08c7a778

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.
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
9
9
  document.adoptedStyleSheets.push(AtkinsonStyles);
10
10
  document.adoptedStyleSheets.push(BasicStyles);
11
11
 
12
- const __COMMIT_HASH__ = "a4bfc0f";
12
+ const __COMMIT_HASH__ = "08c7a77";
13
13
  const __PACKAGE_VERSION__ = "5.2.0";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -304,8 +304,9 @@ export default class SemanticsMetadata extends LitElement {
304
304
  /* eslint-disable eqeqeq */
305
305
  if(!this._meta?.properties) { return; }
306
306
 
307
- const apiAllowsEdit = this._meta.permissions.edit_semantics;
308
- const canEdit = apiAllowsEdit && !this._meta.origInstance && (this._authUrl || getUserAccount() !== null);
307
+ const localApiAllowsEdit = !this._meta.origInstance && this._meta.permissions.edit_semantics;
308
+ const apiAllowsEdit = localApiAllowsEdit || (this._meta.origInstance && this._parent.api._endpoint.startsWith(this._meta.origInstance.href));
309
+ const canEdit = localApiAllowsEdit && (this._authUrl || getUserAccount() !== null);
309
310
 
310
311
  return html`
311
312
  ${(this._addTag || this._editTag) ? html`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.2.0-develop-a4bfc0fc",
3
+ "version": "5.2.0-develop-08c7a778",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",