add if statment to AdminPostController