Rechte gerade ziehen (1/2)
AiChatInZeiterfassung entfernt AiModuleChatView zusammengefasst
This commit is contained in:
@@ -99,8 +99,8 @@ namespace BeWo.ViewModel
|
||||
{IsGkvAbrechnungRight, BeWoApp.AppSettings.AllowGkvAbrechnung},
|
||||
{IsUnterschriftRight, false},
|
||||
{(r) => r == UserRightType.SupportConcept_ImportData, BeWoApp.AppSettings.ShowPersehImport},
|
||||
{(r) => r == UserRightType.AiChatInZeiterfassung, BeWoApp.AppSettings.ShowAI},
|
||||
{IsAiModuleRight, BeWoApp.AppSettings.ModuleAiEnabled || BeWoApp.AppSettings.ShowAI},
|
||||
//{(r) => r == UserRightType.AiChatInZeiterfassung, BeWoApp.AppSettings.ShowAI},
|
||||
{IsAiModuleRight, BeWoApp.AppSettings.ShowAI},
|
||||
{IsAiModuleSettingRight, BeWoApp.AppSettings.ModuleAiSettingsEnabled},
|
||||
{(r) => r == UserRightType.AiVoiceView, BeWoApp.AppSettings.ShowAIVoice},
|
||||
};
|
||||
@@ -288,7 +288,8 @@ namespace BeWo.ViewModel
|
||||
return false;
|
||||
}
|
||||
private static bool IsAiModuleRight(UserRightType right) =>
|
||||
ContainsRight(right, UserRightType.AiModuleView, UserRightType.AiModuleChatAdd, UserRightType.AiModuleChatDelete, UserRightType.AiModuleChatEdit);
|
||||
ContainsRight(right, UserRightType.AiModuleServiceRecordChat, UserRightType.AiModuleServiceRecordDocu, UserRightType.AiModulePromptbausteineEdit,
|
||||
UserRightType.AiModulePromptbausteineView, UserRightType.AiModulePromptbausteinShare, UserRightType.AiVoiceView);
|
||||
private static bool IsAiModuleSettingRight(UserRightType right) =>
|
||||
ContainsRight(right);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user