File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,21 @@ class TViewerCapabilities : public TViewerPipeClient {
23
23
24
24
NJson::TJsonValue GetSettings () {
25
25
NJson::TJsonValue json;
26
+
26
27
NJson::TJsonValue& security (json[" Security" ]);
27
28
security[" IsTokenRequired" ] = AppData ()->EnforceUserTokenRequirement ;
28
29
security[" UseLoginProvider" ] = AppData ()->AuthConfig .GetUseLoginProvider ();
29
30
security[" DomainLoginOnly" ] = AppData ()->AuthConfig .GetDomainLoginOnly ();
31
+
32
+ if (DatabaseNavigateResponse && DatabaseNavigateResponse->IsOk ()) {
33
+ if (DatabaseNavigateResponse->Get ()->Request && !DatabaseNavigateResponse->Get ()->Request ->ResultSet .empty ()) {
34
+ NJson::TJsonValue& database (json[" Database" ]);
35
+ TSchemeCacheNavigate::TEntry& entry = DatabaseNavigateResponse->Get ()->Request ->ResultSet .front ();
36
+ if (entry.DomainInfo ) {
37
+ database[" GraphShardExists" ] = entry.DomainInfo ->Params .GetGraphShard () != 0 ;
38
+ }
39
+ }
40
+ }
30
41
return json;
31
42
}
32
43
You can’t perform that action at this time.
0 commit comments