Skip to main content

WithGroupPermissionsOnlyAttribute

A class in Root.Township, Alta.Console.

Console requirement: the caller needs all the listed group permissions, on any server type.

Constructors​

MemberWhat it is
WithGroupPermissionsOnlyAttribute(params GroupPermissions[] groups)Creates a WithGroupPermissionsOnlyAttribute from groups.

Properties​

1 private and internal property
MemberWhat it is
private List<GroupPermissions> Groups { get; set; }The group permissions required.

Methods​

MemberWhat it is
override bool Check(CommandContext context)True only if there is a caller with group permissions that include every listed one.
override string ToString()Names the required groups.