88qx . Class . define ( "osparc.share.NewCollaboratorsManager" , {
99 extend : osparc . ui . window . SingletonWindow ,
1010
11- construct : function ( resourceData , showOrganizations = true ) {
11+ construct : function ( resourceData , showOrganizations = true , showAccessRights = true ) {
1212 this . base ( arguments , "newCollaboratorsManager" , this . tr ( "New collaborators" ) ) ;
1313
1414 this . set ( {
@@ -26,6 +26,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
2626
2727 this . __resourceData = resourceData ;
2828 this . __showOrganizations = showOrganizations ;
29+ this . __showAccessRights = showAccessRights ;
2930
3031 this . __renderLayout ( ) ;
3132
@@ -50,6 +51,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
5051 members : {
5152 __resourceData : null ,
5253 __showOrganizations : null ,
54+ __showAccessRights : null ,
5355 __searchDelayer : null ,
5456 __selectedCollaborators : null ,
5557 __potentialCollaborators : null ,
@@ -192,7 +194,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
192194 this . getChildControl ( "potential-collaborators-list" ) ;
193195 this . getChildControl ( "searching-collaborators" ) ;
194196
195- if ( this . __resourceData [ "resourceType" ] === "study" ) {
197+ if ( this . __resourceData [ "resourceType" ] === "study" && this . __showAccessRights ) {
196198 const selectBox = this . getChildControl ( "access-rights-selector" ) ;
197199 const helper = this . getChildControl ( "access-rights-helper" ) ;
198200
0 commit comments