From 738b530a68c2fd5ecaa7e4821e5628769757a5e2 Mon Sep 17 00:00:00 2001
From: "Barbara B. Frosik" <bfrosik@aps.anl.gov>
Date: Tue, 7 Jul 2015 19:05:12 +0000
Subject: [PATCH] Set the default value for isLocalUser in userInfo

---
 .../anl/aps/dm/portal/controllers/UserInfoController.java  | 7 -------
 .../gov/anl/aps/dm/portal/model/entities/UserInfo.java     | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/controllers/UserInfoController.java b/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/controllers/UserInfoController.java
index 3ae3d5c5..e88f98ca 100644
--- a/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/controllers/UserInfoController.java
+++ b/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/controllers/UserInfoController.java
@@ -217,13 +217,6 @@ public class UserInfoController extends CrudEntityController<UserInfo, UserInfoF
         return super.getAvailableItems();
     }
     
-//    @Override
-//    public String prepareCreate() {
-//        current = createEntityInstance();
-//        current.setIsLocalUser(true);
-//        return "create?faces-redirect=true";
-//    }
-//
     @Override
     public String prepareEdit(UserInfo user) {
         passwordEntry = null;
diff --git a/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/model/entities/UserInfo.java b/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/model/entities/UserInfo.java
index 68d2e3dc..c07873e8 100644
--- a/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/model/entities/UserInfo.java
+++ b/src/java/DmWebPortal/src/java/gov/anl/aps/dm/portal/model/entities/UserInfo.java
@@ -91,7 +91,7 @@ public class UserInfo extends CloneableEntity
     private String password;
     @NotNull
     @Column(name = "is_local_user")
-    private boolean isLocalUser;
+    private boolean isLocalUser = true;
     @ManyToMany(mappedBy = "userInfoList")
     private List<RoleType> roleTypeList;
     @OneToMany(cascade = CascadeType.ALL, mappedBy = "userInfo")
-- 
GitLab