@@ -526,6 +526,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
526526 if ( ! osparc . desktop . credits . Utils . areWalletsEnabled ( ) ) {
527527 return ;
528528 }
529+ if ( osparc . utils . Resources . isStudyLike ( this . __resourceData ) && ! osparc . data . model . Study . canIWrite ( this . __resourceData [ "accessRights" ] ) ) {
530+ return ;
531+ }
529532
530533 const resourceData = this . __resourceData ;
531534 if ( osparc . utils . Resources . isStudy ( resourceData ) ) {
@@ -634,6 +637,10 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
634637 } ,
635638
636639 __addPermissionsPage : function ( ) {
640+ if ( osparc . utils . Resources . isStudyLike ( this . __resourceData ) && ! osparc . data . model . Study . canIWrite ( this . __resourceData [ "accessRights" ] ) ) {
641+ return ;
642+ }
643+
637644 const id = "Permissions" ;
638645 const title = this . tr ( "Sharing" ) ;
639646 const iconSrc = "@FontAwesome5Solid/share-alt/22" ;
@@ -779,6 +786,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
779786 if ( osparc . utils . Resources . isService ( resourceData ) ) {
780787 return ;
781788 }
789+ if ( osparc . utils . Resources . isStudyLike ( this . __resourceData ) && ! osparc . data . model . Study . canIWrite ( this . __resourceData [ "accessRights" ] ) ) {
790+ return ;
791+ }
782792
783793 const id = "ServicesUpdate" ;
784794 const title = this . tr ( "Services Updates" ) ;
@@ -813,6 +823,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
813823 ) {
814824 return ;
815825 }
826+ if ( osparc . utils . Resources . isStudyLike ( this . __resourceData ) && ! osparc . data . model . Study . canIWrite ( this . __resourceData [ "accessRights" ] ) ) {
827+ return ;
828+ }
816829
817830 const id = "ServicesBootOptions" ;
818831 const title = this . tr ( "Boot Options" ) ;
0 commit comments