Publish Zonghengjia Windows 0.4.0 client source
This commit is contained in:
@@ -11,7 +11,12 @@ def desired_subscriptions_for_node(node):
|
||||
# on an office relay. The legacy node-sync protocol carries no enrolled-site
|
||||
# proof or per-device lease; leave office provisioning fail-closed until that
|
||||
# separate protocol is implemented and accepted.
|
||||
if node.office_only:
|
||||
if (
|
||||
not node.active
|
||||
or not node.subscription_enabled
|
||||
or node.status != node.Status.ONLINE
|
||||
or node.office_only
|
||||
):
|
||||
return Subscription.objects.none()
|
||||
return (
|
||||
Subscription.objects.select_related("user", "plan")
|
||||
|
||||
Reference in New Issue
Block a user