diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-10-11 18:50:38 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-10-11 18:50:38 +0300 |
| commit | 3c798a187e66cf6fe6cc4ac15a943de112028fde (patch) | |
| tree | 56b7c882d42ab6b247193ae25f83553ccc646717 /Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs | |
| parent | ffc9932efa42c9485b9d0d53ee0b0602690f1c46 (diff) | |
| parent | 0476dcfa43b3fa43997d8c763463350b81448107 (diff) | |
| download | Tango-3c798a187e66cf6fe6cc4ac15a943de112028fde.tar.gz Tango-3c798a187e66cf6fe6cc4ac15a943de112028fde.zip | |
MERGED PPC Update Future Branch !
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs index 375b648d0..bbabed225 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs @@ -131,10 +131,14 @@ namespace Tango.PPC.UI.Modules UserModules.Clear(); - if (_authenticationProvider.CurrentUser != null) + if (_authenticationProvider.AuthenticationRequired && _authenticationProvider.CurrentUser != null) { UserModules = AllModules.Where(x => _authenticationProvider.CurrentUser.HasPermission(x.Permission)).ToObservableCollection(); } + else if (!_authenticationProvider.AuthenticationRequired) + { + UserModules = AllModules.ToObservableCollection(); + } ModulesLoaded?.Invoke(this, new EventArgs()); } |
