Fix console verbiage for global extensions
| @@ -169,11 +169,10 @@ router.post('/branches', async (request, response) => { | ||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | if (global && !request.user.profile.admin) { |
| 172 | 172 | console.error(`User ${request.user.profile.handle} does not have permission to updatelist branches of global extensions.`); |
| 173 | 173 | return response.status(403).send('Forbidden: No permission to updatelist branches of global extensions.'); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - | |
| 177 | 176 | const basePath = global ? PUBLIC_DIRECTORIES.globalExtensions : request.user.directories.extensions; |
| 178 | 177 | const extensionPath = path.join(basePath, extensionName); |
| 179 | 178 | |
| @@ -216,8 +215,8 @@ router.post('/switch', async (request, response) => { | ||
| 216 | 215 | } |
| 217 | 216 | |
| 218 | 217 | if (global && !request.user.profile.admin) { |
| 219 | 218 | console.error(`User ${request.user.profile.handle} does not have permission to updateswitch branches of global extensions.`); |
| 220 | 219 | return response.status(403).send('Forbidden: No permission to updateswitch branches of global extensions.'); |
| 221 | 220 | } |
| 222 | 221 | |
| 223 | 222 | const basePath = global ? PUBLIC_DIRECTORIES.globalExtensions : request.user.directories.extensions; |