Clean up member privacy command

This commit is contained in:
Ske
2020-06-17 23:06:49 +02:00
parent dd2690c3f4
commit 761270f0c3
3 changed files with 172 additions and 110 deletions

View File

@@ -10,6 +10,9 @@
{
public static bool CanAccess(this PrivacyLevel level, LookupContext ctx) =>
level == PrivacyLevel.Public || ctx == LookupContext.ByOwner;
public static string Name(this PrivacyLevel level) =>
level == PrivacyLevel.Public ? "public" : "private";
}
public enum LookupContext