Merge branch 'master' into user-pending

This commit is contained in:
Belén Curcio
2017-11-06 13:48:26 -03:00
committed by GitHub
+1 -1
View File
@@ -35,7 +35,7 @@ const createAction = async ({user = {}, pubsub, loaders: {Comments}}, {item_id,
// Set the user as pending if it was a user flag and user has no Admin, Staff or Moderation roles
let user = await UsersService.findById(item_id);
if(!user.roles){
if(!user.isStaff()){
await UsersService.setStatus(item_id, 'PENDING');
}
}