Skip to content

Commit d69e828

Browse files
committed
minor
1 parent 95700cf commit d69e828

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

services/static-webserver/client/source/class/osparc/data/model/Function.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,14 @@ qx.Class.define("osparc.data.model.Function", {
139139
statics: {
140140
canIWrite: function(accessRights) {
141141
const groupsStore = osparc.store.Groups.getInstance();
142-
const orgIDs = groupsStore.getOrganizationIds();
143-
orgIDs.push(groupsStore.getMyGroupId());
144-
if (orgIDs.length) {
145-
let canWrite = false;
146-
for (let i=0; i<gIds.length && !canWrite; i++) {
147-
const gid = gIds[i];
148-
canWrite = (gid in accessRights) ? accessRights[gid]["write"] : false;
149-
}
150-
return canWrite;
142+
const gIds = groupsStore.getOrganizationIds();
143+
gIds.push(groupsStore.getMyGroupId());
144+
let canWrite = false;
145+
for (let i=0; i<gIds.length && !canWrite; i++) {
146+
const gid = gIds[i];
147+
canWrite = (gid in accessRights) ? accessRights[gid]["write"] : false;
151148
}
152-
return false;
149+
return canWrite;
153150
},
154151
}
155152
});

services/static-webserver/client/source/class/osparc/info/FunctionLarge.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ qx.Class.define("osparc.info.FunctionLarge", {
106106
"ACCESS_RIGHTS": {
107107
label: this.tr("Access"),
108108
view: osparc.info.StudyUtils.createAccessRights(this.getFunction()),
109-
action: {
110-
button: osparc.utils.Utils.getLinkButton(canIWrite),
111-
callback: this.isOpenOptions() ? this.__openAccessRights : "openAccessRights",
112-
ctx: this
113-
}
109+
action: null
114110
},
115111
"CREATED": {
116112
label: this.tr("Created"),

0 commit comments

Comments
 (0)