From f22f2487c57abb07d5d97caeecdbfb341832e0a6 Mon Sep 17 00:00:00 2001 From: alexgao1 Date: Thu, 9 Mar 2023 22:37:06 +0000 Subject: [PATCH] Users created from admin panel are assigned their own layer role (#1135) * Users created from admin panel are assigned their own layer role * Add placeholder for text field inputs (Atlascine #253) --- .../src/main/atlas_couchapp/_attachments/tools/js/users.js | 3 +++ 1 file changed, 3 insertions(+) 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);