This commit is contained in:
joker-x 2020-08-30 17:13:41 +02:00
parent a5cb0b6dd9
commit 136e73e28d
3 changed files with 2 additions and 7 deletions

View file

@ -9,7 +9,6 @@ const interoperableErrors = require('../../shared/interoperable-errors');
const log = require('../lib/log');
const {getGlobalNamespaceId} = require('../../shared/namespaces');
const {getAdminId} = require('../../shared/users');
const { tUI } = require('../lib/translate');
// TODO: This would really benefit from some permission cache connected to rebuildPermissions
@ -451,7 +450,7 @@ async function regenerateRoleNamesTable() {
function throwPermissionDenied() {
throw new interoperableErrors.PermissionDeniedError(tUI('permissionDenied', config.defaultLanguage));
throw new interoperableErrors.PermissionDeniedError('Permission denied');
}
async function removeDefaultShares(tx, user) {