def post(self, current_user): json_request = request.json users_ids = json_request['users_ids'] update_users_status(users_ids, StatusType.DELETED, True, True) return accepted("Provided users are deleted.")
def post(self, current_user): json_request = request.json users_ids = json_request['users_ids'] ban_forums = bool(json_request['ban_forums']) ban_messages = bool(json_request['ban_messages']) update_users_status(users_ids, StatusType.BANNED, ban_forums, ban_messages) return accepted("Provided users are banned.")
def post(self, current_user, user): update_user_status(user, StatusType.ACTIVE, True, True) return accepted("Provided user unbanned.")