mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Ensured admin can always PM user (#9653)
* Ensured admin can always PM user * Fixed lint issues * Updated admin check and removed async * Removed console log
This commit is contained in:
@@ -313,3 +313,7 @@ schema.methods.isMemberOfGroupPlan = async function isMemberOfGroupPlan () {
|
||||
return g.isSubscribed();
|
||||
});
|
||||
};
|
||||
|
||||
schema.methods.isAdmin = function isAdmin () {
|
||||
return this.contributor && this.contributor.admin;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user