This commit is contained in:
Girish Ramakrishnan
2018-09-05 23:00:08 -07:00
parent def3521ee1
commit 2ad0a57fc1

View File

@@ -147,7 +147,7 @@ function websocketAuth(requiredScopes, req, res, next) {
function verifyAppOwnership(req, res, next) {
if (req.user.admin) return next();
if (!config.isSpacesEnabled) return next();
if (!config.isSpacesEnabled()) return next();
const appCreate = !('id' in req.params);