diff --git a/nunaliit2-couch-application/src/main/atlas_couchapp/_attachments/tools/js/users.js b/nunaliit2-couch-application/src/main/atlas_couchapp/_attachments/tools/js/users.js index 241f24d65..ca4bef40d 100644 --- a/nunaliit2-couch-application/src/main/atlas_couchapp/_attachments/tools/js/users.js +++ b/nunaliit2-couch-application/src/main/atlas_couchapp/_attachments/tools/js/users.js @@ -36,6 +36,8 @@ var UserManagementApplication = $n2.Class({ this.userDb = $n2.couch.getUserDb(); this.authService = config.directory.authService; + + this.atlasName = config.atlasDbName; $n2.log('config',config); @@ -279,6 +281,7 @@ var UserManagementApplication = $n2.Class({ _this.userDb.createUser({ name: userName ,password: pw + ,roles: [`${_this.atlasName}_layer_${userName}`] ,display: userName ,onSuccess: function() { loginUser(userName, pw);