) {
return {
...dns,
+ access: writablePermission,
writable: context.hs.writable(),
};
}
@@ -46,7 +67,7 @@ export default function Page() {
}
allNs.global = data.nameservers;
- const isDisabled = data.writable === false;
+ const isDisabled = data.access === false || data.writable === false;
return (
@@ -56,6 +77,12 @@ export default function Page() {
the configuration
)}
+ {data.access ? undefined : (
+
+ Your permissions do not allow you to modify the DNS settings for this
+ tailnet.
+
+ )}