diff --git a/Site5/Pages/v5/Init/Default.aspx b/Site5/Pages/v5/Init/Default.aspx index 0eb0679c..d68e4e89 100644 --- a/Site5/Pages/v5/Init/Default.aspx +++ b/Site5/Pages/v5/Init/Default.aspx @@ -33,8 +33,19 @@ @@ -225,7 +236,9 @@ return isValid; } - }); + updateDatabasePermissionsAnalysis(); + + }); // end of document.ready function recheckConfigurationWritability() { @@ -308,7 +321,35 @@ } }); } - + + + function updateDatabasePermissionsAnalysis() { + + $.ajax({ + type: "POST", + url: "Default.aspx/TestDatabasePermissions", + data: "{}", + contentType: "application/json; charset=utf-8", + dataType: "json", + success: function (msg) { + if (!msg.d.AllPermissionsOk) { + updatePermissionsAnalysisDisplay(msg.d); + setTimeout('updateDatabasePermissionsAnalysis();', 2000); + } else { + alert('AllPermissionsOk = true'); + // TODO: PROCEED + } + } + }); + } + + function updatePermissionsAnalysisDisplay(testResults) { + $('#CellPermissionAdminCredentialCanLogin').text(testResults.AdminCredentialsCanLogin); + $('#CellPermissionAdminCredentialCanSelect').text(testResults.AdminCredentialsCanSelect); + $('#CellPermissionAdminCredentialCanExecute').text(testResults.AdminCredentialsCanExecute); + $('#CellPermissionAdminCredentialCanAdmin').text(testResults.AdminCredentialsCanAdmin); + } + function beginInitDatabase() { $.ajax({ @@ -384,7 +425,7 @@

Welcome to Swarmops

Congratulations! Since you're reading this, you have successfully installed the Swarmops packages and set up an Apache virtual server using mod_mono.

-

However, before we proceed, we need to make sure that you are indeed the sysadmin of this server, and not a remote bot who just discovered an unfinished Swarmops installation. To do that, answer these simple questions:

+

However, before we proceed, we need to make sure that you are indeed the sysadmin of this server, and not a remote bot who just discovered an unfinished Swarmops installation. To cross that bridge, answer these three simple questions:

-