Skip to content

Node.js based forum software built for the modern web

fix: extra param

Barış Soner Uşaklıbcd1925c8d79
diff --git a/src/user/profile.js b/src/user/profile.js
index 9feffc31b2..b464871ab9 100644
--- a/src/user/profile.js
+++ b/src/user/profile.js
@@ -364,7 +364,7 @@ module.exports = function (User) {
data.uid = String(data.uid);
User.isPasswordValid(data.newPassword);
const [isAdmin, isTargetAdmin, hasPassword] = await Promise.all([
- User.isAdministrator(uid, data.uid),
+ User.isAdministrator(uid),
User.isAdministrator(data.uid),
User.hasPassword(uid),
]);