DebugConfig Feature added - see all user rights
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user