AIPromptbaustein-Rechte hinzugefügt (neu in 3.28)
This commit is contained in:
@@ -181,6 +181,9 @@ namespace BeWo.Data.Security
|
||||
if (isRightVersion326(r))
|
||||
return "3.26";
|
||||
|
||||
if (isRightVersion328(r))
|
||||
return "3.28";
|
||||
|
||||
return BASE_VERSION;
|
||||
}
|
||||
|
||||
@@ -218,5 +221,14 @@ namespace BeWo.Data.Security
|
||||
return r == UserRightType.AiModuleChatClone
|
||||
|| r == UserRightType.AiModuleViewSetting;
|
||||
}
|
||||
|
||||
private static bool isRightVersion328(UserRightType r)
|
||||
{
|
||||
return r == UserRightType.AiModulePromptbausteineAdd
|
||||
|| r == UserRightType.AiModulePromptbausteineEdit
|
||||
|| r == UserRightType.AiModulePromptbausteineRemove
|
||||
|| r == UserRightType.AiModulePromptbausteineSeeAll
|
||||
|| r == UserRightType.AiModulePromptbausteineView;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user