File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,6 @@ qx.Class.define("osparc.dashboard.CardBase", {
125125 switch ( sharedWith ) {
126126 case "show-all" :
127127 return false ;
128- case "shared-with-everyone" : {
129- const everyoneGroupIds = [
130- groupsStore . getEveryoneProductGroup ( ) . getGroupId ( ) ,
131- groupsStore . getEveryoneGroup ( ) . getGroupId ( ) ,
132- ] ;
133- const found = Object . keys ( checks ) . some ( gId => everyoneGroupIds . includes ( parseInt ( gId ) ) ) ;
134- // show those that are shared with "1" or product everyone's groupId
135- return ! found ;
136- }
137128 case "my-resources" : {
138129 if ( myGroupId in checks ) {
139130 const myAccessRights = checks [ myGroupId ] ;
@@ -153,6 +144,15 @@ qx.Class.define("osparc.dashboard.CardBase", {
153144 // if we get here, it means that it was shared-with-me via an organization
154145 return false ;
155146 }
147+ case "shared-with-everyone" : {
148+ const everyoneGroupIds = [
149+ groupsStore . getEveryoneProductGroup ( ) . getGroupId ( ) ,
150+ groupsStore . getEveryoneGroup ( ) . getGroupId ( ) ,
151+ ] ;
152+ const found = Object . keys ( checks ) . some ( gId => everyoneGroupIds . includes ( parseInt ( gId ) ) ) ;
153+ // show those that are shared with "1" or product everyone's groupId
154+ return ! found ;
155+ }
156156 default :
157157 return true ;
158158 }
You can’t perform that action at this time.
0 commit comments