From b5ccaa3c8e8ecf9fdb2b3ca1f437d8ba5936f943 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 31 Aug 2018 14:51:17 +0000 Subject: [PATCH] --- devdocs/specs/core-import-v7.txt | 8 +++++--- server/AyaNova/biz/UserBiz.cs | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/devdocs/specs/core-import-v7.txt b/devdocs/specs/core-import-v7.txt index a03bb301..0618668c 100644 --- a/devdocs/specs/core-import-v7.txt +++ b/devdocs/specs/core-import-v7.txt @@ -72,6 +72,8 @@ IMPORTMAP NOTES FOR DOCS - Only an empty database is supported for import - Only one shot import, can't import again later -- User's login and passwords are not imported and need to be setup again after import -- Many objects are imported as tags: - - List of objects +- IMPORTED USERS + - login and passwords are not imported and need to be setup again after import + - no Authorization Role is set and therefore no rights to anything. A role needs to be set after import for each user +- TAGS, the following objects are imported as tags + - TODO: List of objects diff --git a/server/AyaNova/biz/UserBiz.cs b/server/AyaNova/biz/UserBiz.cs index 20bf8152..b6324e46 100644 --- a/server/AyaNova/biz/UserBiz.cs +++ b/server/AyaNova/biz/UserBiz.cs @@ -437,6 +437,9 @@ namespace AyaNova.Biz i.Login = Hasher.GenerateSalt(); i.Password = Hasher.hash(i.Salt, Hasher.GenerateSalt()); + //No rights + i.Roles=AuthorizationRoles.NoRole; + User o = await CreateAsync(i); if (HasErrors) {