Skip to content

Commit 8042a24

Browse files
committed
minor
1 parent 20132e5 commit 8042a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/share/Collaborators.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ qx.Class.define("osparc.share.Collaborators", {
352352
const myGid = osparc.auth.Data.getInstance().getGroupId();
353353
if (
354354
(this._resourceType === "study") &&
355-
// check if I'm part of the shared (not through an organization)
356-
(Object.keys(this._serializedDataCopy["accessRights"]).includes(myGid)) &&
355+
// check if I'm part of the access rights (not through an organization)
356+
(Object.keys(this._serializedDataCopy["accessRights"]).includes(myGid.toString())) &&
357357
// check also user is not "prjOwner". Backend will silently not let the frontend remove that user.
358358
(this._serializedDataCopy["prjOwner"] !== osparc.auth.Data.getInstance().getEmail())
359359
) {

0 commit comments

Comments
 (0)