Changeset 1327 for trunk/src/org/apollo


Ignore:
Timestamp:
04/26/19 13:13:30 (5 years ago)
Author:
bln4
Message:

Updated all calls to Boolean.get("expeditee.authentication") to point to AuthenticatorBrowser.isAuthenticationRequired so that they all pipe through exact same check. Also fixed up some old references to Boolean.get("auth") in the apollo sections that I missed.

Location:
trunk/src/org/apollo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/ApolloSystem.java

    r1270 r1327  
    2424import org.apollo.widgets.FramePlayer;
    2525import org.expeditee.actions.Actions;
     26import org.expeditee.auth.AuthenticatorBrowser;
    2627import org.expeditee.core.BlockingRunnable;
    2728import org.expeditee.gio.EcosystemManager;
     
    261262                Browser.main(args);
    262263               
    263                 if (!Boolean.getBoolean("auth")) {
     264                if (!AuthenticatorBrowser.isAuthenticationRequired()) {
    264265                        // If not running with authentication/login, then proceed with initializing Apollo
    265266                        EcosystemManager.getMiscManager().runOnGIOThread(new BlockingRunnable() {
  • trunk/src/org/apollo/io/AudioPathManager.java

    r1303 r1327  
    4545        public static void changeParentAndSubFolders(String newFolder) {
    4646               
    47                 if (Boolean.getBoolean("auth") && System.getProperty("user.name").equals(AuthenticatorBrowser.USER_NOBODY)) {
     47                if (AuthenticatorBrowser.isAuthenticationRequired() && System.getProperty("user.name").equals(AuthenticatorBrowser.USER_NOBODY)) {
    4848                        System.err.println("**** AudioPathManager::changeParentAndSubFolder(): Nothing to do for user '" + AuthenticatorBrowser.USER_NOBODY + "'");
    4949                        return;
     
    5454                        String userName = UserSettings.UserName.get();
    5555                        //String resourcesPrivateIndividualPath = FrameIO.PARENT_FOLDER + "resources-" + userName + File.separator;
    56                         if (Boolean.getBoolean("auth")) {
     56                        if (AuthenticatorBrowser.isAuthenticationRequired()) {
    5757                                System.err.println("**** AudioPathManager::changeParentAndSubFolder(): Setting 'audio' folder to resources-" + userName);
    5858                        }
Note: See TracChangeset for help on using the changeset viewer.