From 022451ff475f400a0481b32e470fdc7afb8bfb3f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 15 Nov 2021 20:09:20 +0000 Subject: [PATCH] --- server/AyaNova/biz/UserBiz.cs | 4 +++- server/AyaNova/models/GlobalBizSettings.cs | 5 ++++- server/AyaNova/util/AySchema.cs | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/server/AyaNova/biz/UserBiz.cs b/server/AyaNova/biz/UserBiz.cs index a9dc5eb9..0347e765 100644 --- a/server/AyaNova/biz/UserBiz.cs +++ b/server/AyaNova/biz/UserBiz.cs @@ -154,7 +154,9 @@ namespace AyaNova.Biz CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowWOWiki, AllTags, AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowWOWikiInTags), - + CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowWOAttachments, + AllTags, + AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowWOAttachmentsInTags), CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowUserSettings, AllTags, AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowUserSettingsInTags), diff --git a/server/AyaNova/models/GlobalBizSettings.cs b/server/AyaNova/models/GlobalBizSettings.cs index ca892541..2c5f8bf8 100644 --- a/server/AyaNova/models/GlobalBizSettings.cs +++ b/server/AyaNova/models/GlobalBizSettings.cs @@ -73,6 +73,9 @@ namespace AyaNova.Models public bool CustomerAllowWOWiki { get; set; } public List CustomerAllowWOWikiInTags { get; set; } = new List(); + public bool CustomerAllowWOAttachments { get; set; } + public List CustomerAllowWOAttachmentsInTags { get; set; } = new List(); + public bool CustomerAllowUserSettings { get; set; } public List CustomerAllowUserSettingsInTags { get; set; } = new List(); @@ -105,7 +108,7 @@ namespace AyaNova.Models } //Used internally and at client end as extended rights atop roles system in relation only to Contact (customer type users) - public record CustomerRightsRecord(bool CSR, bool WO, bool WOWIKI, bool UserSettings, bool NotifyServiceImminent, bool NotifyCSRAccepted, bool NotifyCSRRejected, bool NotifyWOCreated, bool NotifyWOCompleted, long EntityId, bool EntityActive); + public record CustomerRightsRecord(bool CSR, bool WO, bool WOWIKI, bool WOAttachments, bool UserSettings, bool NotifyServiceImminent, bool NotifyCSRAccepted, bool NotifyCSRRejected, bool NotifyWOCreated, bool NotifyWOCompleted, long EntityId, bool EntityActive); } /* CREATE TABLE [dbo].[AGLOBAL]( diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index f8c0a025..8f65ce32 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -267,12 +267,13 @@ namespace AyaNova.Util + "customerworkorderreport1tags VARCHAR(255) ARRAY, customerworkorderreport2tags VARCHAR(255) ARRAY, " + "customerworkorderreport3tags VARCHAR(255) ARRAY, customerworkorderreport4tags VARCHAR(255) ARRAY, customerworkorderreport5tags VARCHAR(255) ARRAY, " + "customerallowwowiki BOOL DEFAULT FALSE, customerallowwowikiintags VARCHAR(255) ARRAY, " + + "customerallowwoattachments BOOL DEFAULT FALSE, customerallowwoattachmentsintags VARCHAR(255) ARRAY, " + "customerallowusersettings BOOL DEFAULT FALSE, customerallowusersettingsintags VARCHAR(255) ARRAY, " + "customerallownotifyserviceimminent BOOL DEFAULT FALSE, customerallownotifyserviceimminentintags VARCHAR(255) ARRAY, " + "customerallownotifycsraccepted BOOL DEFAULT FALSE, customerallownotifycsracceptedintags VARCHAR(255) ARRAY, " + "customerallownotifycsrrejected BOOL DEFAULT FALSE, customerallownotifycsrrejectedintags VARCHAR(255) ARRAY, " + "customerallownotifywocreated BOOL DEFAULT FALSE, customerallownotifywocreatedintags VARCHAR(255) ARRAY, " - + "customerallownotifywocompleted BOOL DEFAULT FALSE, customerallownotifywocompletedintags VARCHAR(255) ARRAY" + + "customerallownotifywocompleted BOOL DEFAULT FALSE, customerallownotifywocompletedintags VARCHAR(255) ARRAY" + ")"); //create global ops BACKUP settings table