|
|
@ -305,7 +305,7 @@ async function isPrivilegedOrSelfAndPasswordMatch(caller, data) {
|
|
|
|
|
|
|
|
|
|
|
|
async function processDeletion({ uid, method, password, caller }) {
|
|
|
|
async function processDeletion({ uid, method, password, caller }) {
|
|
|
|
const isTargetAdmin = await user.isAdministrator(uid);
|
|
|
|
const isTargetAdmin = await user.isAdministrator(uid);
|
|
|
|
const isSelf = parseInt(uid, 10) === caller.uid;
|
|
|
|
const isSelf = parseInt(uid, 10) === parseInt(caller.uid, 10);
|
|
|
|
const isAdmin = await user.isAdministrator(caller.uid);
|
|
|
|
const isAdmin = await user.isAdministrator(caller.uid);
|
|
|
|
|
|
|
|
|
|
|
|
if (isSelf && meta.config.allowAccountDelete !== 1) {
|
|
|
|
if (isSelf && meta.config.allowAccountDelete !== 1) {
|
|
|
|