/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="ByondRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(ByondRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); RightsType = Api.Rights.RightsType.Byond; }
/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="ByondRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(ByondRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); }