]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Fix work with admins
[stg.git] / projects / stargazer / main.cpp
index 8eacc9aca032aeb8e3bb458c32efde859db90621..6a8c61f51dea08829f1a4fd38a45ccdd585e575b 100644 (file)
@@ -552,7 +552,7 @@ WriteServLog("Storage plugin: %s. Loading successfull.", dataStore->GetVersion()
 
 tariffs = new TARIFFS_IMPL(dataStore);
 admins = new ADMINS_IMPL(dataStore);
-users = new USERS_IMPL(settings, dataStore, tariffs, *admins->GetSysAdmin());
+users = new USERS_IMPL(settings, dataStore, tariffs, admins->GetSysAdmin());
 traffCnt = new TRAFFCOUNTER(users, tariffs, settings->GetRulesFileName());
 traffCnt->SetMonitorDir(settings->GetMonitorDir());