feat: allow admins to edit the "owned" status of games
This commit is contained in:
		| @@ -110,6 +110,7 @@ def edit_game(game_id): | ||||
|         return jsonify({'message': 'Game not found!'}), 404 | ||||
|     game.title = data.get('title', game.title) | ||||
|     game.image = data.get('image', game.image) | ||||
|     game.owned = data.get('owned', game.owned)  # Update owned status if provided | ||||
|      | ||||
|     db.session.commit() | ||||
|     return jsonify({'message': 'Game updated!'}), 200 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user