ShowAI Recht angebunden
This commit is contained in:
@@ -15,7 +15,7 @@ namespace BeWo.Core.Commands
|
||||
{
|
||||
bool canExecute() =>
|
||||
BeWoAppInfo.IsInAiMode &&
|
||||
(BeWoApp.AppSettings?.ModuleAiEnabled ?? false) &&
|
||||
(BeWoApp.AppSettings?.ModuleAiEnabled ?? BeWoApp.AppSettings?.ShowAI ?? false) &&
|
||||
BeWoApp.HasLoggedOnUserRight(userRightType) &&
|
||||
(additionalCheckup is null || additionalCheckup());
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace BeWo.ViewModel
|
||||
{IsUnterschriftRight, false},
|
||||
{(r) => r == UserRightType.SupportConcept_ImportData, BeWoApp.AppSettings.ShowPersehImport},
|
||||
{(r) => r == UserRightType.AiChatInZeiterfassung, BeWoApp.AppSettings.ShowAI},
|
||||
{IsAiModuleRight, BeWoApp.AppSettings.ModuleAiEnabled},
|
||||
{IsAiModuleRight, BeWoApp.AppSettings.ModuleAiEnabled || BeWoApp.AppSettings.ShowAI},
|
||||
{IsAiModuleSettingRight, BeWoApp.AppSettings.ModuleAiSettingsEnabled},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user