backend-plus 1.19.3 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/backend-plus.js +1 -1
- package/package.json +1 -1
package/lib/backend-plus.js
CHANGED
|
@@ -481,7 +481,7 @@ AppBackend.prototype.isAdmin = function isAdmin(reqOrContext){
|
|
|
481
481
|
return reqOrContext && (reqOrContext.forDump || reqOrContext.user && reqOrContext.user[be.config.login.rolFieldName] == 'admin');
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
AppBackend.prototype.canChangePass = async function
|
|
484
|
+
AppBackend.prototype.canChangePass = async function canChangePass(reqOrContext, _userToChangePass){
|
|
485
485
|
var be = this;
|
|
486
486
|
return be.isAdmin(reqOrContext);
|
|
487
487
|
}
|
package/package.json
CHANGED