@elementor/editor-global-classes 4.4.0-1092 → 4.4.0-1094
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/sync-with-document-save.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -3073,7 +3073,7 @@ function syncDirtyState() {
|
|
|
3073
3073
|
function triggerSave(panelActions, context2 = "preview") {
|
|
3074
3074
|
const user = (0, import_editor_current_user3.getCurrentUser)();
|
|
3075
3075
|
const canEdit = user?.capabilities.includes(UPDATE_CLASS_CAPABILITY_KEY);
|
|
3076
|
-
if (!canEdit) {
|
|
3076
|
+
if (!canEdit || (0, import_editor_current_user3.isContentOnlyUser)()) {
|
|
3077
3077
|
return null;
|
|
3078
3078
|
}
|
|
3079
3079
|
if (pendingSave) {
|