Пример #1
0
 /**
  * Checks to see if setup is complete, and it not locks out non-admin users by redirecting to a
  * static page instead of showing a forbidden error.
  */
 private static void checkCompleteAndLicensed() {
   // If setup is complete, redirect
   if (isInitialSetupComplete() && isLicensed()) {
     complete();
   }
   // If this user does not have the right roles, redirect to a static page
   if (Security.isSystemAdminOrRestrictedSystemAdmin() == false
       && Security.isSecurityAdminOrRestrictedSecurityAdmin() == false) {
     notLicensed();
   }
   if (!Common.isClusterStable()) {
     Maintenance.maintenance(request.url);
   }
 }
Пример #2
0
 /** Displays the restarting screen. */
 @Util
 private static void restarting() {
   flash.success(MessagesUtils.get("setup.waitStable.description"));
   Maintenance.maintenance(Common.reverseRoute(Setup.class, "index"));
 }