mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: use hasOwnProprety
This commit is contained in:
@@ -116,7 +116,7 @@ privsAdmin.socketMap = {
|
||||
};
|
||||
|
||||
privsAdmin.resolve = (path) => {
|
||||
if (privsAdmin.routeMap[path]) {
|
||||
if (privsAdmin.routeMap.hasOwnProperty(path)) {
|
||||
return privsAdmin.routeMap[path];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user