afixing bug on checking if user can delete badge