2
0
Эх сурвалжийг харах

122299 change
removeFromAdmin to revokeFromAdmin

soumaeda 2 жил өмнө
parent
commit
9db6e21805

+ 1 - 1
apps/app/src/server/models/user.js

@@ -265,7 +265,7 @@ module.exports = function(crowi) {
     });
   };
 
-  userSchema.methods.removeFromAdmin = async function() {
+  userSchema.methods.revokeFromAdmin = async function() {
     logger.debug('Remove from admin', this);
     this.admin = 0;
     return this.save();