DebugConfig Feature added - see all user rights

This commit is contained in:
2025-03-31 13:18:54 +02:00
parent 6b8ea825b1
commit cb7e71b43c
2 changed files with 11 additions and 4 deletions

View File

@@ -110,9 +110,14 @@ namespace BeWo.ViewModel
get
{
List<UserRightType> possibleRights = new List<UserRightType>();
//List<UserRightType> nopossibleRights = new List<UserRightType>();
//List<UserRightType> nopossibleRights = new List<UserRightType>();
foreach (var right in Utils.GetAllEnumValues<UserRightType>().Except(this._Rights).ToList())
var load_all = false;
#if DEBUG
if (DebugConfig.CurrentConfig is DebugConfig config && config.EnableAllUserRightsInDebug)
load_all = true;
#endif
foreach (var right in Utils.GetAllEnumValues<UserRightType>().Except(this._Rights).ToList())
{
if (IsObsoleteRight(right))
continue;
@@ -130,7 +135,9 @@ namespace BeWo.ViewModel
}
#if DEBUG
valid = true;
if(load_all)
valid = true;
else
#endif
if(valid)