We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ad324 commit c69006eCopy full SHA for c69006e
src/backend/src/routers/hosting/puter-site.js
@@ -147,6 +147,14 @@ class PuterSiteMiddleware extends AdvancedBase {
147
res.status(502).send('subdomain is pointing to non-directory');
148
}
149
150
+ // Verify subdomain owner permission
151
+ const subdomain_actor = Actor.adapt(subdomain_owner);
152
+ const svc_acl = services.get('acl');
153
+ if ( ! await svc_acl.check(subdomain_actor, node, 'read') ) {
154
+ res.status(502).send('subdomain owner does not have access to directory');
155
+ return;
156
+ }
157
+
158
subdomain_root_path = await node.get('path');
159
160
0 commit comments