From 5f4f090a9f972b5f7929c6c3254ffca2c68cbbf7 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 24 Aug 2022 18:44:25 +0000 Subject: [PATCH] Restrict superuser, eval mode offer bizadmin once it exists so evaluators can see all the things now restricted to superuser --- devdocs/todo.txt | 3 +++ server/AyaNova/util/Seeder.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index f3c55ae2..c0d78e6f 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -40,6 +40,9 @@ todo: IMPORTANT! rockfish not putting time limit on subscription keys, UI needs todo: restrict superuser account in some critical ways so it can't be used for day to day work, maybe no dashboard etc nothing too serious that it breaks existing code but remove any features that it shouldn't be used for Find a subtle way to do this particularly for subscription users + Maybe the way to do this is to remove any areas from initialize that are not the concern of the superuser so all of service, accounting, dashboard other than memos etc + Stuff that's of concern to superuser allow but any business related stuff hide / remove from init. + TODO: make a bizadmin user the default user account to login for trial evaluation so they can see all the things now that they are removed from superuser todo: active users in terms of license data should not show in log only on boot but also in the about page (not license because it would confuse people) since it's relevant and we need to know it right away diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 188e4991..53414b05 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -1754,7 +1754,7 @@ namespace AyaNova.Util { User u = new User(); u.Active = active; - + u.AllowLogin=true; do { u.Name = Fake.Name.FullName();