File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -891,16 +891,22 @@ function delete(obj)
891
891
892
892
function sharing_value = get_sharing(obj )
893
893
config = loadplotlyconfig();
894
- config = config .sharing ;
895
- if ~isempty(config )
896
- if strcmp(config , ' private' )
897
- sharing_value = false ;
898
- elseif strcmp(config , ' secret' )
899
- warning(' Secret share keys are not currently supported in the MATLAB API.' );
900
- sharing_value = false ;
894
+ if ~isfield(config , ' sharing' )
895
+ if isfield(config , ' world_readable' )
896
+ sharing_value = config .world_readable ;
897
+ return ;
901
898
else
902
899
sharing_value = true ;
900
+ return ;
903
901
end
902
+ end
903
+
904
+ config = config .sharing ;
905
+ if strcmp(config , ' private' )
906
+ sharing_value = false ;
907
+ elseif strcmp(config , ' secret' )
908
+ warning(' Secret share keys are not currently supported in the MATLAB API.' );
909
+ sharing_value = false ;
904
910
else
905
911
sharing_value = true ;
906
912
end
You can’t perform that action at this time.
0 commit comments