Fix console verbiage for global extensions

71e92af09d3d817c988656402a567d08aba6223b

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -5Ignore whitespace
src/endpoints/extensions.js+4 -5
@@ -169,11 +169,10 @@ router.post('/branches', async (request, response) => {
169169 }
170170
171171 if (global && !request.user.profile.admin) {
172172 console.error(`User ${request.user.profile.handle} does not have permission to updatelist branches of global extensions.`);
173173 return response.status(403).send('Forbidden: No permission to updatelist branches of global extensions.');
174174 }
175175
176-
177176 const basePath = global ? PUBLIC_DIRECTORIES.globalExtensions : request.user.directories.extensions;
178177 const extensionPath = path.join(basePath, extensionName);
179178
@@ -216,8 +215,8 @@ router.post('/switch', async (request, response) => {
216215 }
217216
218217 if (global && !request.user.profile.admin) {
219218 console.error(`User ${request.user.profile.handle} does not have permission to updateswitch branches of global extensions.`);
220219 return response.status(403).send('Forbidden: No permission to updateswitch branches of global extensions.');
221220 }
222221
223222 const basePath = global ? PUBLIC_DIRECTORIES.globalExtensions : request.user.directories.extensions;