Move extension method to actual interface with default implementation

This commit is contained in:
Zeegaan
2022-07-06 12:47:58 +02:00
parent c94ee7c1ec
commit 49cc2bce79
4 changed files with 37 additions and 64 deletions

View File

@@ -32,4 +32,6 @@ public interface IReadOnlyUserGroup
IEnumerable<string> AllowedSections { get; }
IEnumerable<int> AllowedLanguages => Enumerable.Empty<int>();
public bool HasAccessToLanguage( int languageId) => AllowedLanguages.Any() is false || AllowedLanguages.Contains(languageId);
}