goblin-desktop 3.0.2 → 3.0.3
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/.zou-flow +0 -1
- package/package.json +1 -1
- package/widgets/desktop/service.js +7 -0
package/.zou-flow
CHANGED
package/package.json
CHANGED
|
@@ -311,6 +311,13 @@ Goblin.registerQuest(goblinName, 'add-workitem', function* (
|
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
if (!workitem.mode) {
|
|
315
|
+
//force readonly when adding a workitem without WORKSHOP_EDIT skills
|
|
316
|
+
if (!quest.user.canDo(`${workitem.name}.edit`)) {
|
|
317
|
+
workitem.mode = 'readonly';
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
314
321
|
const desktopId = quest.goblin.id;
|
|
315
322
|
const widgetId = `${workitem.name}@${desktopId}@${workitem.id}`;
|
|
316
323
|
|